part of output from borg:
;
; Created by Borg Disassembler
; written by Cronos
1000:00401000 ;-----------------------------------------------------------------------
1000:00401000 ;Segment : 1000h Offset : 401000h Size : 4400h
1000:00401000 ;32-bit Code
1000:00401000 ;-----------------------------------------------------------------------
1000:00401000 ; XREFS First: 1000:0040109e Number : 3
1000:00401000 loc_00401000:
1000:00401000 8bff mov edi, edi
1000:00401002 55 push ebp
1000:00401003 8bec mov ebp, esp
1000:00401005 833d288b400002 cmp dword ptr [loc_00408b28], 02h
1000:0040100c 7405 jz loc_00401013
1000:0040100e e891060000 call loc_004016a4
1000:00401013 ; XREFS First: 1000:0040100c Number : 1
1000:00401013 loc_00401013:
1000:00401013 ff7508 push dword ptr [ebp+08h]
1000:00401016 e8da040000 call loc_004014f5
1000:0040101b 68ff000000 push 0ffh
1000:00401020 e8ea010000 call loc_0040120f
1000:00401025 59 pop ecx
1000:00401026 59 pop ecx
1000:00401027 5d pop ebp
1000:00401028 c3 ret
1000:00401029 ; XREFS First: 1000:0040118f Number : 1
1000:00401029 loc_00401029:
1000:00401029 6a14 push 14h
1000:0040102b 6860784000 push offset loc_00407860
1000:00401030 e8eb120000 call loc_00402320
1000:00401035 33f6 xor esi, esi
1000:00401037 3935bc984000 cmp dword ptr [loc_004098bc], esi
1000:0040103d 750b jnz loc_0040104a
1000:0040103f 56 push esi
1000:00401040 56 push esi
1000:00401041 6a01 push 01h
1000:00401043 56 push esi
1000:00401044 ff1504604000 call dword ptr [HeapSetInformation]
1000:0040104a ; XREFS First: 1000:0040103d Number : 1
1000:0040104a loc_0040104a:
1000:0040104a b84d5a0000 mov eax, 5a4dh
1000:0040104f 66390500004000 cmp word ptr [400000h], ax
1000:00401056 7405 jz loc_0040105d
1000:00401058 ; XREFS First: 1000:0040106c Number : 3
1000:00401058 loc_00401058:
1000:00401058 8975e4 mov [ebp-1ch], esi
1000:0040105b eb36 jmp loc_00401093
1000:0040105d ; XREFS First: 1000:00401056 Number : 1
1000:0040105d loc_0040105d:
1000:0040105d a13c004000 mov eax, dword ptr [40003ch]
1000:00401062 81b80000400050450000 cmp dword ptr [eax+400000h], 4550h
1000:0040106c 75ea jnz loc_00401058
1000:0040106e b90b010000 mov ecx, 10bh
1000:00401073 66398818004000 cmp [eax+400018h], cx
1000:0040107a 75dc jnz loc_00401058
1000:0040107c 83b8740040000e cmp dword ptr [eax+400074h], 0eh
1000:00401083 76d3 jbe loc_00401058
1000:00401085 33c9 xor ecx, ecx
1000:00401087 39b0e8004000 cmp [eax+4000e8h], esi
1000:0040108d 0f95c1 setnz cl
1000:00401090 894de4 mov [ebp-1ch], ecx
1000:00401093 ; XREFS First: 1000:0040105b Number : 1
1000:00401093 loc_00401093:
1000:00401093 e85c120000 call loc_004022f4
1000:00401098 85c0 test eax, eax
1000:0040109a 7508 jnz loc_004010a4
1000:0040109c 6a1c push 1ch
1000:0040109e e85dffffff call loc_00401000
1000:004010a3 59 pop ecx
1000:004010a4 ; XREFS First: 1000:0040109a Number : 1
1000:004010a4 loc_004010a4:
1000:004010a4 e8d0100000 call loc_00402179
1000:004010a9 85c0 test eax, eax
1000:004010ab 7508 jnz loc_004010b5
1000:004010ad 6a10 push 10h
1000:004010af e84cffffff call loc_00401000
1000:004010b4 59 pop ecx
1000:004010b5 ; XREFS First: 1000:004010ab Number : 1
1000:004010b5 loc_004010b5:
1000:004010b5 e87a0d0000 call loc_00401e34
1000:004010ba 8975fc mov [ebp-04h], esi
1000:004010bd e82d0b0000 call loc_00401bef
1000:004010c2 85c0 test eax, eax
1000:004010c4 7908 jns loc_004010ce