Function at 0x40ae30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41bc9e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4b0
mov eax, dword [0x421140]
push ebx
push esi
push edi
mov dword [esp + 0x4b4], eax
mov ebx, ecx
mov byte [esp + 0x3b0], 0
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x3b1]
rep stosd dword es:[edi], eax
xor esi, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [ebx + 0x70], esi
mov eax, dword [ebx + 0x78]
neg eax
mov dword [esp + 0x4c4], esi
mov dword [ebx + 0x74], eax
mov dword [esp + 0x38], esi
cmp dword [ebx + 0x6c], 0x10
jb 0x40aeb0
mov eax, dword [ebx + 0x58]
jmp 0x40aeb3
lea eax, [ebx + 0x58]
push 0x41d6e8
push eax
call fcn.004135af
mov dword [ebx + 0x70], esi
mov ecx, dword [ebx + 0x78]
neg ecx
add esp, 8
cmp eax, esi
mov dword [esp + 0x54], eax
mov dword [esp + 0x50], esi
mov dword [ebx + 0x74], ecx
je 0x40cb96
test byte [eax + 0xc], 0x10
jne 0x40bd8e
jmp 0x40aef0
mov edx, dword [esp + 0x54]
push edx
lea eax, [esp + 0x3b4]
push 0xff
push eax
call fcn.0041361a
mov ecx, dword [ebx + 0x70]
add esp, 0xc
inc ecx
mov dword [ebx + 0x70], ecx
cmp byte [esp + 0x3b0], 0x23
jne 0x40b68a
lea eax, [esp + 0x3b0]
mov dword [esp + 0x188], 0xf
mov dword [esp + 0x184], esi
mov byte [esp + 0x174], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af43
sub eax, edx
push eax
lea ecx, [esp + 0x3b4]
push ecx
lea ecx, [esp + 0x178]
call fcn.00402170
push 6
push esi
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x17c]
mov byte [esp + 0x4d0], 1
call fcn.00402da0
mov edx, dword [eax + 0x14]
cmp edx, esi
je 0x40afb9
cmp edx, 6
mov ecx, edx
jb 0x40af90
mov ecx, 6
cmp dword [eax + 0x18], 0x10
jb 0x40af9b
mov eax, dword [eax + 4]
jmp 0x40af9e
add eax, 4
mov esi, eax
mov edi, str.ifdef
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40afb0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40afc6
cmp edx, 6
jae 0x40afbe
or eax, 0xffffffff
jmp 0x40afc6
xor eax, eax
cmp edx, 6
setne al
xor esi, esi
cmp eax, esi
mov eax, dword [esp + 0x78]
sete byte [esp + 0x37]
cmp eax, 0x10
mov byte [esp + 0x4c4], 1
jb 0x40afed
mov eax, dword [esp + 0x64]
push eax
call fcn.00412c8d
add esp, 4
mov al, byte [esp + 0x37]
test al, al
mov edi, 0xf
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], esi
mov byte [esp + 0x64], 0
je 0x40b17a
mov dword [esp + 0x24c], edi
mov dword [esp + 0x248], esi
mov byte [esp + 0x238], 0
mov dword [esp + 0x2a0], edi
mov dword [esp + 0x29c], esi
mov byte [esp + 0x28c], 0
mov dword [esp + 0x2bc], edi
mov dword [esp + 0x2b8], esi
mov byte [esp + 0x2a8], 0
lea ecx, [esp + 0x288]
push ecx
lea edx, [esp + 0x238]
push edx
lea eax, [esp + 0x178]
push eax
mov byte [esp + 0x4d0], 5
call fcn.00410c00
lea ecx, [esp + 0x2b0]
push ecx
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x29c]
push eax
call fcn.00410c00
add esp, 0x18
lea ecx, [esp + 0x234]
push ecx
mov ecx, dword [ebx + 0x3c]
call fcn.0040d700
cmp eax, esi
jne 0x40b0ac
mov dword [esp + 0x30], esi
jmp 0x40b0d7
push 1
lea ecx, [eax + 0x1c]
mov eax, dword [ecx + 0x14]
push 0x41d6dc
push eax
push esi
call fcn.004018e0
test eax, eax
jne 0x40b0cf
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], esi
push ecx
jmp 0x40b0dc
mov dword [esp + 0x30], 1
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x40]
call fcn.00404860
cmp dword [esp + 0x2bc], 0x10
jb 0x40b0ff
mov eax, dword [esp + 0x2a8]
push eax
call fcn.00412c8d
add esp, 4
cmp dword [esp + 0x2a0], 0x10
mov dword [esp + 0x2bc], edi
mov dword [esp + 0x2b8], esi
mov byte [esp + 0x2a8], 0
jb 0x40b12f
mov ecx, dword [esp + 0x28c]
push ecx
call fcn.00412c8d
add esp, 4
cmp dword [esp + 0x24c], 0x10
mov dword [esp + 0x2a0], edi
mov dword [esp + 0x29c], esi
mov byte [esp + 0x28c], 0
jb 0x40b15f
mov edx, dword [esp + 0x238]
push edx
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x24c], edi
mov dword [esp + 0x248], esi
mov byte [esp + 0x238], 0
jmp 0x40b64d
push 7
push esi
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x17c]
call fcn.00402da0
mov ecx, dword [eax + 0x14]
push 7
push str.ifndef
push ecx
push esi
mov ecx, eax
mov byte [esp + 0x4d4], 6
call fcn.004018e0
neg eax
sbb al, al
inc al
mov byte [esp + 0x37], al
cmp dword [esp + 0x94], 0x10
mov byte [esp + 0x4c4], 1
jb 0x40b1d8
mov edx, dword [esp + 0x80]
push edx
call fcn.00412c8d
add esp, 4
mov al, byte [esp + 0x37]
test al, al
mov dword [esp + 0x94], edi
mov dword [esp + 0x90], esi
mov byte [esp + 0x80], 0
je 0x40b36d
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], esi
mov byte [esp + 0x21c], 0
mov dword [esp + 0x268], edi
mov dword [esp + 0x264], esi
mov byte [esp + 0x254], 0
mov dword [esp + 0x2d8], edi
mov dword [esp + 0x2d4], esi
mov byte [esp + 0x2c4], 0
lea eax, [esp + 0x250]
push eax
lea ecx, [esp + 0x21c]
push ecx
lea edx, [esp + 0x178]
push edx
mov byte [esp + 0x4d0], 9
call fcn.00410c00
lea eax, [esp + 0x2cc]
push eax
lea ecx, [esp + 0x228]
push ecx
lea edx, [esp + 0x264]
push edx
call fcn.00410c00
mov ecx, dword [ebx + 0x3c]
add esp, 0x18
lea eax, [esp + 0x218]
push eax
call fcn.0040d700
cmp eax, esi
jne 0x40b29f
mov dword [esp + 0x30], 1
jmp 0x40b2ca
mov edx, dword [eax + 0x30]
push 1
lea ecx, [eax + 0x1c]
push 0x41d6dc
push edx
push esi
call fcn.004018e0
test eax, eax
jne 0x40b2c6
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 1
push eax
jmp 0x40b2cf
mov dword [esp + 0x30], esi
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x40]
call fcn.00404860
cmp dword [esp + 0x2d8], 0x10
jb 0x40b2f2
mov edx, dword [esp + 0x2c4]
push edx
call fcn.00412c8d
add esp, 4
cmp dword [esp + 0x268], 0x10
mov dword [esp + 0x2d8], edi
mov dword [esp + 0x2d4], esi
mov byte [esp + 0x2c4], 0
jb 0x40b322
mov eax, dword [esp + 0x254]
push eax
call fcn.00412c8d
add esp, 4
cmp dword [esp + 0x230], 0x10
mov dword [esp + 0x268], edi
mov dword [esp + 0x264], esi
mov byte [esp + 0x254], 0
jb 0x40b352
mov ecx, dword [esp + 0x21c]
push ecx
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], esi
mov byte [esp + 0x21c], 0
jmp 0x40b64d
push 5
push esi
lea edx, [esp + 0xa0]
push edx
lea ecx, [esp + 0x17c]
call fcn.00402da0
mov ecx, dword [eax + 0x14]
push 5
push str.else
push ecx
push esi
mov ecx, eax
mov byte [esp + 0x4d4], 0xa
call fcn.004018e0
neg eax
sbb al, al
inc al
mov byte [esp + 0x37], al
cmp dword [esp + 0xb0], 0x10
mov byte [esp + 0x4c4], 1
jb 0x40b3cb
mov edx, dword [esp + 0x9c]
push edx
call fcn.00412c8d
add esp, 4
mov al, byte [esp + 0x37]
test al, al
mov dword [esp + 0xb0], edi
mov dword [esp + 0xac], esi
mov byte [esp + 0x9c], 0
je 0x40b4f8
mov edx, dword [esp + 0x4c]
cmp edx, esi
je 0x40b4a3
mov eax, dword [esp + 0x48]
add edx, eax
lea eax, [esp + 0x3c]
mov ecx, edx
dec ecx
mov esi, eax
mov eax, ecx
shr eax, 2
lea edi, [eax*4]
sub ecx, edi
mov edi, dword [esi + 8]
cmp edi, eax
ja 0x40b41f
sub eax, edi
mov esi, dword [esi + 4]
mov eax, dword [esi + eax*4]
cmp dword [eax + ecx*4], 1
jne 0x40b451
dec dword [esp + 0x4c]
jne 0x40b439
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 0
call fcn.00404860
jmp 0x40b4b1
mov ecx, edx
lea eax, [esp + 0x3c]
dec ecx
mov edx, eax
mov eax, ecx
shr eax, 2
lea esi, [eax*4]
sub ecx, esi
mov esi, dword [edx + 8]
cmp esi, eax
ja 0x40b471
sub eax, esi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
cmp dword [eax + ecx*4], 0
jne 0x40b4b1
dec dword [esp + 0x4c]
jne 0x40b48b
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], 1
call fcn.00404860
jmp 0x40b4b1
mov edx, dword [ebx + 0x34]
push 0x16
push edx
call fcn.0040de20
add esp, 8
cmp dword [esp + 0x188], 0x10
mov byte [esp + 0x4c4], 0
jb 0x40b4d3
mov eax, dword [esp + 0x174]
push eax
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x188], 0xf
mov dword [esp + 0x184], 0
mov byte [esp + 0x174], 0
xor esi, esi
jmp 0x40bd80
push 6
push esi
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0x17c]
call fcn.00402da0
mov edx, dword [eax + 0x14]
push 6
push str.endif
push edx
push esi
mov ecx, eax
mov byte [esp + 0x4d4], 0xb
call fcn.004018e0
neg eax
sbb al, al
inc al
mov byte [esp + 0x37], al
cmp dword [esp + 0xcc], 0x10
mov byte [esp + 0x4c4], 1
jb 0x40b556
mov eax, dword [esp + 0xb8]
push eax
call fcn.00412c8d
add esp, 4
mov al, byte [esp + 0x37]
test al, al
mov dword [esp + 0xcc], edi
mov dword [esp + 0xc8], esi
mov byte [esp + 0xb8], 0
je 0x40b5ba
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x40b589
dec eax
mov dword [esp + 0x4c], eax
jne 0x40b597
mov dword [esp + 0x48], esi
jmp 0x40b597
mov ecx, dword [ebx + 0x34]
push 0x16
push ecx
call fcn.0040de20
add esp, 8
cmp dword [esp + 0x188], 0x10
mov byte [esp + 0x4c4], 0
jb 0x40b66f
mov edx, dword [esp + 0x174]
push edx
jmp 0x40b667
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x40b633
mov ecx, dword [esp + 0x48]
add ecx, eax
lea eax, [esp + 0x3c]
dec ecx
mov edx, eax
mov eax, ecx
shr eax, 2
lea edi, [eax*4]
sub ecx, edi
mov edi, dword [edx + 8]
cmp edi, eax
ja 0x40b5e6
sub eax, edi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
cmp dword [eax + ecx*4], 1
jge 0x40b633
cmp dword [esp + 0x188], 0x10
mov byte [esp + 0x4c4], 0
jb 0x40b614
mov ecx, dword [esp + 0x174]
push ecx
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x188], 0xf
mov dword [esp + 0x184], esi
mov byte [esp + 0x174], 0
jmp 0x40bd80
cmp dword [esp + 0x38], esi
jne 0x40b648
lea edx, [esp + 0x170]
push edx
mov ecx, ebx
call fcn.00405360
mov edi, 0xf
cmp dword [esp + 0x188], 0x10
mov byte [esp + 0x4c4], 0
jb 0x40b66f
mov eax, dword [esp + 0x174]
push eax
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x188], edi
mov dword [esp + 0x184], esi
mov byte [esp + 0x174], 0
jmp 0x40bd80
mov eax, dword [esp + 0x4c]
cmp eax, esi
je 0x40b6c6
mov ecx, dword [esp + 0x48]
add ecx, eax
lea eax, [esp + 0x3c]
dec ecx
mov edx, eax
mov eax, ecx
shr eax, 2
lea edi, [eax*4]
sub ecx, edi
mov edi, dword [edx + 8]
cmp edi, eax
ja 0x40b6b6
sub eax, edi
mov edx, dword [edx + 4]
mov eax, dword [edx + eax*4]
cmp dword [eax + ecx*4], 1
jl 0x40bd80
lea eax, [esp + 0x3b0]
mov dword [esp + 0x16c], 0xf
mov dword [esp + 0x168], esi
mov byte [esp + 0x158], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b6f0
sub eax, edx
push eax
lea ecx, [esp + 0x3b4]
push ecx
lea ecx, [esp + 0x15c]
call fcn.00402170
lea edx, [esp + 0x154]
push edx
mov byte [esp + 0x4c8], 0xc
call fcn.00410790
lea eax, [esp + 0x158]
push eax
call fcn.00410a30
mov eax, dword [esp + 0x170]
mov edi, 1
add esp, 8
cmp eax, edi
jae 0x40b766
cmp dword [esp + 0x16c], 0x10
mov byte [esp + 0x4c4], 0
jb 0x40bd66
mov ecx, dword [esp + 0x158]
push ecx
jmp 0x40bd5e
cmp dword [esp + 0x16c], 0x10
mov ecx, dword [esp + 0x158]
jae 0x40b77e
lea ecx, [esp + 0x158]
cmp byte [ecx], 0x2e
jne 0x40b8bb
push 5
push str..DATA
push eax
push esi
lea ecx, [esp + 0x164]
call fcn.004018e0
test eax, eax
jne 0x40b7a9
mov dword [esp + 0x50], edi
jmp 0x40b845
mov edx, dword [esp + 0x168]
push 5
push str..CODE
push edx
push esi
lea ecx, [esp + 0x164]
call fcn.004018e0
test eax, eax
jne 0x40b7d3
mov dword [esp + 0x50], 2
jmp 0x40b845
mov eax, dword [esp + 0x168]
push 7
push str..PUBLIC
push eax
push esi
lea ecx, [esp + 0x164]
call fcn.004018e0
test eax, eax
jne 0x40b7fd
mov dword [esp + 0x50], 3
jmp 0x40b845
mov ecx, dword [esp + 0x168]
push 7
push str..NATIVE
push ecx
push esi
lea ecx, [esp + 0x164]
call fcn.004018e0
test eax, eax
jne 0x40b827
mov dword [esp + 0x50], 4
jmp 0x40b845
mov eax, dword [ebx + 0x34]
lea edx, [esp + 0x3b0]
push edx
push 0xb
push eax
mov dword [esp + 0x5c], 0xffffffff
call fcn.0040de20
add esp, 0xc
cmp dword [esp + 0x38], edi
jne 0x40bd44
mov ecx, dword [ebx + 0x4c]
push edi
call fcn.0040ef00
cmp dword [ebx + 0x2c], esi
je 0x40bd44
lea esi, [ebx + 0x1c]
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
mov ecx, esi
mov edx, dword [ecx + 8]
dec eax
cmp edx, eax
ja 0x40b876
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x4c]
push edx
call fcn.0040e700
mov eax, dword [esi + 0x10]
add eax, dword [esi + 0xc]
mov ecx, esi
mov edx, dword [ecx + 8]
dec eax
cmp edx, eax
ja 0x40b897
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov ecx, dword [ebx + 0x38]
push edx
call fcn.00411470
mov ecx, esi
call fcn.00402e60
mov eax, dword [ebx + 0x2c]
test eax, eax
jne 0x40b864
xor esi, esi
jmp 0x40bd44
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x154]
push eax
call fcn.0040fea0
lea ecx, [esp + 0x154]
push ecx
mov ecx, dword [ebx + 0x3c]
call fcn.0040d850
mov eax, dword [esp + 0x50]
cmp eax, esi
jne 0x40b903
cmp dword [esp + 0x168], esi
jbe 0x40bd44
mov edx, dword [ebx + 0x34]
push 0xc
push edx
call fcn.0040de20
add esp, 8
jmp 0x40bd44
cmp eax, 0xffffffff
je 0x40bd44
cmp eax, edi
jne 0x40bdc8
cmp dword [esp + 0x38], edi
jne 0x40b93d
cmp dword [esp + 0x16c], 0x10
mov byte [esp + 0x4c4], 0
jb 0x40bd66
mov eax, dword [esp + 0x158]
push eax
jmp 0x40bd5e
mov eax, 0xf
mov dword [esp + 0x1dc], eax
mov dword [esp + 0x1d8], esi
mov byte [esp + 0x1c8], 0
mov dword [esp + 0x214], eax
mov dword [esp + 0x210], esi
mov byte [esp + 0x200], 0
mov dword [esp + 0x284], eax
mov dword [esp + 0x280], esi
mov byte [esp + 0x270], 0
mov dword [esp + 0x1f8], eax
mov dword [esp + 0x1f4], esi
mov byte [esp + 0x1e4], 0
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x1c8]
push edx
lea eax, [esp + 0x15c]
push eax
mov byte [esp + 0x4d0], 0x10
call fcn.00410c00
lea ecx, [esp + 0x208]
push ecx
lea edx, [esp + 0x1f0]
push edx
lea eax, [esp + 0x280]
push eax
call fcn.00410c00
add esp, 0x18
lea ecx, [esp + 0x1c4]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.004113c0
cmp eax, esi
je 0x40ba4e
cmp dword [esp + 0x1dc], 0x10
mov ecx, dword [esp + 0x1c8]
jae 0x40ba0b
lea ecx, [esp + 0x1c8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebx + 0x34]
push edx
push ecx
push 0xd
push eax
call fcn.0040de20
add esp, 0x10
lea ecx, [esp + 0x1e0]
call fcn.00401d80
lea ecx, [esp + 0x26c]
call fcn.00401d80
lea ecx, [esp + 0x1fc]
call fcn.00401d80
lea ecx, [esp + 0x1c4]
jmp 0x40c19a
push 0x41d1f0
lea ecx, [esp + 0x1e4]
call fcn.00401d50
test eax, eax
je 0x40baa4
push str.stat
lea ecx, [esp + 0x1e4]
call fcn.00401d50
test eax, eax
je 0x40baa4
cmp dword [esp + 0x1f8], 0x10
mov eax, dword [esp + 0x1e4]
jae 0x40ba90
lea eax, [esp + 0x1e4]
mov ecx, dword [ebx + 0x34]
push eax
push 0xe
push ecx
call fcn.0040de20
add esp, 0xc
jmp 0x40ba1e
push 0x41d1f0
lea ecx, [esp + 0x1e4]
call fcn.00401d50
test eax, eax
jne 0x40bb18
mov edx, dword [ebx + 0x34]
push edx
lea ecx, [esp + 0x380]
call fcn.00411a80
lea eax, [esp + 0x1fc]
push eax
lea ecx, [esp + 0x380]
mov byte [esp + 0x4c8], 0x11
call fcn.00411e00
push esi
lea ecx, [esp + 0x380]
call fcn.00411ea0
push esi
push edi
lea ecx, [esp + 0x384]
push ecx
mov ecx, dword [ebx + 0x44]
lea edx, [esp + 0x1d0]
push edx
call fcn.0040d2d0
lea ecx, [esp + 0x37c]
jmp 0x40bcf1
push str.stat
lea ecx, [esp + 0x1e4]
call fcn.00401d50
test eax, eax
jne 0x40bcfe
mov eax, dword [ebx + 0x34]
push eax
lea ecx, [esp + 0x318]
call fcn.00411a80
push esi
push str.fill
lea ecx, [esp + 0x204]
mov byte [esp + 0x4cc], 0x12
call fcn.00401d20
cmp eax, 0xffffffff
je 0x40bc8f
lea ecx, [esp + 0x2dc]
call fcn.00401c80
lea ecx, [esp + 0x2f8]
call fcn.00401c80
lea ecx, [esp + 0x26c]
push ecx
lea edx, [esp + 0x2fc]
push edx
lea eax, [esp + 0x204]
push eax
mov byte [esp + 0x4d0], 0x14
call fcn.00410c00
lea ecx, [esp + 0x2e8]
push ecx
lea edx, [esp + 0x20c]
push edx
lea eax, [esp + 0x280]
push eax
call fcn.00410c00
mov ecx, dword [ebx + 0x34]
add esp, 0x18
push ecx
lea ecx, [esp + 0x34c]
call fcn.00411a80
lea edx, [esp + 0x2dc]
push edx
lea ecx, [esp + 0x34c]
mov byte [esp + 0x4c8], 0x15
call fcn.00411e00
push esi
lea ecx, [esp + 0x34c]
call fcn.00411ea0
push esi
lea eax, [esp + 0x2fc]
push eax
lea ecx, [esp + 0x128]
push ecx
mov ecx, ebx
call fcn.0040a040
push eax
lea ecx, [esp + 0x318]
mov byte [esp + 0x4c8], 0x16
call fcn.00403630
lea ecx, [esp + 0x120]
mov byte [esp + 0x4c4], 0x15
call fcn.00411ab0
lea ecx, [esp + 0x348]
call fcn.004119e0
mov ecx, dword [ebx + 0x44]
push eax
push esi
lea edx, [esp + 0x31c]
push edx
lea eax, [esp + 0x1d0]
push eax
call fcn.0040d2d0
lea ecx, [esp + 0x348]
mov byte [esp + 0x4c4], 0x14
call fcn.00411ab0
lea ecx, [esp + 0x2f8]
call fcn.00401d80
lea ecx, [esp + 0x2dc]
call fcn.00401d80
jmp 0x40bcea
push esi
lea ecx, [esp + 0x200]
push ecx
lea edx, [esp + 0xf4]
push edx
mov ecx, ebx
call fcn.0040a040
push eax
lea ecx, [esp + 0x318]
mov byte [esp + 0x4c8], 0x17
call fcn.00403630
lea ecx, [esp + 0xec]
mov byte [esp + 0x4c4], 0x12
call fcn.00411ab0
push esi
push esi
lea eax, [esp + 0x31c]
push eax
lea ecx, [esp + 0x1d0]
push ecx
mov ecx, dword [ebx + 0x44]
call fcn.0040d2d0
lea ecx, [esp + 0x314]
mov byte [esp + 0x4c4], 0x10
call fcn.00411ab0
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x38]
push eax
push 4
lea edx, [esp + 0x1cc]
push edx
call fcn.004116c0
lea ecx, [esp + 0x1e0]
call fcn.00401d80
lea ecx, [esp + 0x26c]
call fcn.00401d80
lea ecx, [esp + 0x1fc]
call fcn.00401d80
lea ecx, [esp + 0x1c4]
call fcn.00401d80
cmp dword [esp + 0x16c], 0x10
mov byte [esp + 0x4c4], 0
jb 0x40bd66
mov edx, dword [esp + 0x158]
push edx
call fcn.00412c8d
add esp, 4
mov dword [esp + 0x16c], 0xf
mov dword [esp + 0x168], esi
mov byte [esp + 0x158], 0
mov eax, dword [esp + 0x54]
test byte [eax + 0xc], 0x10
je 0x40aef0
cmp dword [esp + 0x38], esi
jne 0x40cbc0
mov ecx, dword [esp + 0x54]
push ecx
mov dword [esp + 0x3c], 1
call fcn.004134a1
mov al, byte [ebx + 0x82]
add esp, 4
test al, al
je 0x40aea5
mov ecx, dword [ebx + 0x44]
call fcn.0040d480
jmp 0x40aea5
cmp eax, 3
jne 0x40bee7
cmp dword [esp + 0x38], esi
je 0x40c19f
lea eax, [esp + 0x154]
push eax
call fcn.004112a0
add esp, 4
test al, al
jne 0x40be16
mov ecx, dword [ebx + 0x34]
push 0x11
push ecx
call fcn.0040de20
add esp, 8
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
jmp 0x40bd80
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x154]
push edx
call fcn.004113c0
cmp eax, esi
jne 0x40be6a
cmp dword [esp + 0x16c], 0x10
mov eax, dword [esp + 0x158]
jae 0x40be42
lea eax, [esp + 0x158]
push eax
mov eax, dword [ebx + 0x34]
push 0xf
push eax
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
jmp 0x40bd80
mov eax, dword [eax]
cmp eax, 3
je 0x40be9b
mov ecx, dword [ebx + 0x34]
push eax
push 3
push 0x10
push ecx
call fcn.0040de20
add esp, 0x10
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
jmp 0x40bd80
mov ecx, dword [ebx + 0x48]
lea edx, [esp + 0x154]
push edx
call fcn.00410e00
test al, al
jne 0x40bd44
lea ecx, [esp + 0x154]
call fcn.00401800
push eax
mov eax, dword [ebx + 0x34]
push 0xf
push eax
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
jmp 0x40bd80
cmp eax, 4
jne 0x40bfa5
cmp dword [esp + 0x38], edi
je 0x40c19f
lea ecx, [esp + 0x154]
push ecx
call fcn.004112a0
add esp, 4
test al, al
jne 0x40bf35
mov edx, dword [ebx + 0x34]
push 0x11
push edx
call fcn.0040de20
add esp, 8
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
jmp 0x40bd80
mov ecx, dword [ebx + 0x38]
lea eax, [esp + 0x154]
push eax
call fcn.004113c0
cmp eax, esi
je 0x40bf81
mov ecx, dword [eax + 0x20]
push ecx
lea ecx, [esp + 0x158]
call fcn.00401800
mov edx, dword [ebx + 0x34]
push eax
push 0x11
push edx
call fcn.0040de20
add esp, 0x10
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
jmp 0x40bd80
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x38]
push eax
push 7
lea eax, [esp + 0x15c]
push eax
call fcn.004116c0
mov ecx, dword [ebx + 0x50]
push eax
call fcn.004105f0
jmp 0x40bd44
cmp eax, 2
jne 0x40bd44
cmp dword [esp + 0x38], esi
je 0x40c19f
mov eax, 0xf
mov dword [esp + 0x1a4], eax
mov dword [esp + 0x1a0], esi
mov byte [esp + 0x190], 0
mov dword [esp + 0x1c0], eax
mov dword [esp + 0x1bc], esi
mov byte [esp + 0x1ac], 0
lea ecx, [esp + 0x1a8]
push ecx
lea edx, [esp + 0x190]
push edx
lea eax, [esp + 0x15c]
push eax
mov byte [esp + 0x4d0], 0x19
call fcn.00410c00
add esp, 0xc
push str.PROC
lea ecx, [esp + 0x190]
call fcn.00401d50
test eax, eax
je 0x40ca24
push str.proc
lea ecx, [esp + 0x190]
call fcn.00401d50
test eax, eax
je 0x40ca24
push str.ENDP
lea ecx, [esp + 0x190]
call fcn.00401d50
test eax, eax
jne 0x40c0b4
mov ecx, dword [ebx + 0x4c]
push edi
call fcn.0040ef00
cmp dword [ebx + 0x2c], esi
je 0x40cb5a
lea edi, [ebx + 0x1c]
lea ecx, [ecx]
mov ecx, edi
call fcn.004028d0
mov ecx, dword [ebx + 0x4c]
push eax
call fcn.0040e700
mov ecx, edi
call fcn.004028d0
mov ecx, dword [ebx + 0x38]
push eax
call fcn.00411470
mov ecx, edi
call fcn.00402e60
cmp dword [ebx + 0x2c], esi
jne 0x40c070
lea ecx, [esp + 0x1a8]
call fcn.00401d80
lea ecx, [esp + 0x18c]
jmp 0x40bd3f
cmp dword [esp + 0x1bc], edi
jae 0x40c218
mov edi, dword [esp + 0x1a0]
dec edi
push edi
lea ecx, [esp + 0x190]
call fcn.004017e0
cmp byte [eax], 0x3a
jne 0x40c218
push 1
push edi
lea ecx, [esp + 0x194]
call fcn.00401ca0
lea ecx, [esp + 0x18c]
push ecx
call fcn.004112a0
add esp, 4
test al, al
jne 0x40c112
mov edx, dword [ebx + 0x34]
push 0x11
push edx
call fcn.0040de20
add esp, 8
jmp 0x40c187
mov ecx, dword [ebx + 0x38]
lea eax, [esp + 0x18c]
push eax
call fcn.004113c0
cmp eax, esi
je 0x40c1b8
cmp dword [eax], 6
jne 0x40c168
lea ecx, [esp + 0x18c]
push ecx
mov ecx, dword [ebx + 0x4c]
call fcn.0040e600
cmp eax, esi
jne 0x40c153
mov edx, dword [ebx + 0x34]
push 0x11
push edx
call fcn.0040de20
add esp, 8
jmp 0x40c187
mov edx, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x78]
add ecx, edx
mov dword [eax + 4], ecx
mov ecx, dword [ebx + 0x70]
mov edx, dword [eax]
mov dword [edx + 0x20], ecx
jmp 0x40c187
mov eax, dword [eax + 0x20]
push eax
lea ecx, [esp + 0x190]
call fcn.00401800
mov ecx, dword [ebx + 0x34]
push eax
push 0xd
push ecx
call fcn.0040de20
add esp, 0x10
lea ecx, [esp + 0x1a8]
call fcn.00401d80
lea ecx, [esp + 0x18c]
call fcn.00401d80
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
jmp 0x40bd80
push esi
lea ecx, [esp + 0x190]
call fcn.004017e0
cmp byte [eax], 0x5f
jne 0x40c1da
lea edx, [esp + 0x18c]
push edx
lea ecx, [ebx + 0x1c]
call fcn.00404680
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x38]
push eax
push 6
lea eax, [esp + 0x194]
push eax
call fcn.004116c0
mov ecx, dword [ebx + 0x78]
add ecx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebx + 0x4c]
push eax
call fcn.0040ee90
lea ecx, [esp + 0x1a8]
call fcn.00401d80
lea ecx, [esp + 0x18c]
jmp 0x40bd3f
lea edx, [esp + 0x18c]
push edx
lea ecx, [ebx + 0x10]
call fcn.00407250
mov esi, dword [eax]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x1c], esi
jne 0x40c247
mov eax, dword [ebx + 0x34]
push 0x12
push eax
call fcn.0040de20
add esp, 8
jmp 0x40c368
mov al, byte [ebx + 0x80]
test al, al
je 0x40c2c7
push 0x1c
call fcn.00412748
add esp, 4
cmp eax, edi
je 0x40c26a
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [eax + 0x10], edi
jmp 0x40c26c
xor eax, eax
mov edi, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x78]
add ecx, edi
mov dword [eax + 0x14], ecx
lea ecx, [ebx + 0x70]
mov dword [eax], 0x7d
mov edx, dword [ecx]
lea edi, [eax + 4]
push ecx
mov ecx, edi
mov byte [esp + 0x4c8], 0x19
mov dword [esp + 0x34], eax
mov dword [eax + 0x18], edx
call fcn.00404c10
lea eax, [esp + 0x58]
push eax
mov ecx, edi
mov dword [esp + 0x5c], 0
call fcn.00404c10
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00404c10
mov eax, dword [ebx + 0x78]
lea edx, [eax + eax*2]
add dword [ebx + 0x74], edx
xor edi, edi
push 0x1c
call fcn.00412748
add esp, 4
cmp eax, edi
je 0x40c2e4
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov edi, eax
jmp 0x40c2e8
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x30], edi
mov dword [ebx + 0x88], edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x1bc], ecx
mov byte [esp + 0x4c4], 0x1e
jbe 0x40c39f
push 1
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1b4]
push edx
mov ecx, ebx
call fcn.00404fc0
mov eax, dword [esp + 0x1bc]
lea ecx, [eax - 1]
mov eax, dword [esp + 0x5c]
cmp eax, ecx
je 0x40c39b
push eax
lea ecx, [esp + 0x1ac]
call fcn.004017e0
movsx edx, byte [eax]
mov eax, dword [ebx + 0x34]
push edx
push 0xa
push eax
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.00402050
lea ecx, [esp + 0x1a8]
call fcn.00401d80
lea ecx, [esp + 0x18c]
call fcn.00401d80
lea ecx, [esp + 0x154]
mov byte [esp + 0x4c4], 0
call fcn.00401d80
xor esi, esi
jmp 0x40bd80
mov esi, dword [esp + 0x1c]
mov eax, dword [ebx + 0x74]
mov ecx, dword [ebx + 0x78]
add ecx, eax
mov dword [edi + 0x14], ecx
mov dword [edi], esi
mov edx, dword [ebx + 0x70]
mov dword [edi + 0x18], edx
mov eax, dword [ebx + 0x78]
mov edx, dword [ebx + 0x74]
add edx, eax
lea eax, [esi - 1]
cmp eax, 0x87
mov dword [ebx + 0x74], edx
ja case.0x40c3cb.124
jmp dword [eax*4 + 0x40cc10]
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c4fb
jmp 0x40c970
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
ja 0x40c5c0
call fcn.00401390
cmp eax, 1
jae 0x40c43d
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
push eax
mov eax, dword [ebx + 0x34]
push 0x14
push eax
call fcn.0040de20
add esp, 0x10
mov ecx, edi
call fcn.00402d00
push edi
call fcn.00412c8d
add esp, 4
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb case.0x40c3cb.124
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 4
push edx
mov ecx, ebx
call fcn.0040ac80
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 4]
call fcn.00404c10
mov ecx, dword [ebx + 0x78]
add dword [ebx + 0x74], ecx
jmp case.0x40c3cb.124
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c4a8
push 1
call fcn.00401390
push eax
mov eax, dword [ebx + 0x34]
push 5
push eax
call fcn.0040de20
add esp, 0x10
jmp 0x40c8f0
call fcn.00401390
cmp eax, 1
jae 0x40c8f0
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 0x14
push ecx
call fcn.0040de20
add esp, 0x10
mov ecx, edi
call fcn.00402d00
push edi
call fcn.00412c8d
add esp, 4
jmp 0x40c8ea
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
ja 0x40c970
call fcn.00401390
cmp eax, 1
jae 0x40c9bb
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 0x14
push edx
call fcn.0040de20
add esp, 0x10
mov ecx, edi
call fcn.00402d00
push edi
call fcn.00412c8d
add esp, 4
jmp 0x40c9b5
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c562
push 1
call fcn.00401390
push eax
mov eax, dword [ebx + 0x34]
push 5
push eax
call fcn.0040de20
add esp, 0x10
jmp 0x40c595
call fcn.00401390
cmp eax, 1
jae 0x40c595
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 0x14
push ecx
call fcn.0040de20
add esp, 0x10
push 1
mov ecx, edi
call fcn.00403680
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb case.0x40c3cb.124
push 3
jmp 0x40c904
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c5db
push 1
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 5
push edx
call fcn.0040de20
add esp, 0x10
jmp 0x40c43d
call fcn.00401390
cmp eax, 1
jae 0x40c43d
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
push eax
mov eax, dword [ebx + 0x34]
push 0x14
push eax
call fcn.0040de20
add esp, 0x10
push 1
mov ecx, edi
call fcn.00403680
jmp 0x40c437
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 2
lea ecx, [esp + 0x20]
jbe 0x40c63b
push 2
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 5
push ecx
call fcn.0040de20
add esp, 0x10
jmp 0x40c66e
call fcn.00401390
cmp eax, 2
jae 0x40c66e
push 2
lea ecx, [esp + 0x24]
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 0x14
push edx
call fcn.0040de20
add esp, 0x10
push 1
mov ecx, edi
call fcn.00403680
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb 0x40c43d
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
push 4
push ecx
mov ecx, ebx
call fcn.0040ac80
lea edx, [esp + 0x1c]
push edx
lea ecx, [edi + 4]
mov dword [esp + 0x20], eax
call fcn.00404c10
mov eax, dword [ebx + 0x78]
add dword [ebx + 0x74], eax
jmp 0x40c43d
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 2
lea ecx, [esp + 0x20]
jbe 0x40c6d6
push 2
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 5
push edx
call fcn.0040de20
add esp, 0x10
jmp 0x40c709
call fcn.00401390
cmp eax, 2
jae 0x40c709
push 2
lea ecx, [esp + 0x24]
call fcn.00401390
push eax
mov eax, dword [ebx + 0x34]
push 0x14
push eax
call fcn.0040de20
add esp, 0x10
push 1
mov ecx, edi
call fcn.00403680
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb 0x40c8f0
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
push 4
push edx
mov ecx, ebx
call fcn.0040ac80
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 4]
call fcn.00404c10
mov ecx, dword [ebx + 0x78]
add dword [ebx + 0x74], ecx
jmp 0x40c8f0
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c771
push 1
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 5
push ecx
call fcn.0040de20
add esp, 0x10
jmp 0x40c7a4
call fcn.00401390
cmp eax, 1
jae 0x40c7a4
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 0x14
push edx
call fcn.0040de20
add esp, 0x10
push 1
mov ecx, edi
call fcn.00403680
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb case.0x40c3cb.124
push 6
jmp 0x40c9cb
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c7e7
push 1
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 5
push ecx
call fcn.0040de20
add esp, 0x10
jmp 0x40c81a
call fcn.00401390
cmp eax, 1
jae 0x40c81a
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 0x14
push edx
call fcn.0040de20
add esp, 0x10
push 1
mov ecx, edi
call fcn.00403680
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb case.0x40c3cb.124
push 7
jmp 0x40c9cb
lea ecx, [esp + 0x20]
call fcn.00401390
test eax, eax
jbe case.0x40c3cb.124
push 0
lea ecx, [esp + 0x24]
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 5
push ecx
call fcn.0040de20
add esp, 0x10
jmp case.0x40c3cb.124
lea ecx, [esp + 0x20]
call fcn.00401390
test eax, eax
jbe case.0x40c3cb.124
push 0
lea ecx, [esp + 0x24]
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 5
push edx
call fcn.0040de20
add esp, 0x10
jmp case.0x40c3cb.124
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c8bd
push 1
call fcn.00401390
push eax
mov eax, dword [ebx + 0x34]
push 5
push eax
call fcn.0040de20
add esp, 0x10
jmp 0x40c8f0
call fcn.00401390
cmp eax, 1
jae 0x40c8f0
push 1
lea ecx, [esp + 0x24]
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 0x14
push ecx
call fcn.0040de20
add esp, 0x10
push 1
mov ecx, edi
call fcn.00403680
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb case.0x40c3cb.124
push 4
mov edx, dword [esp + 0x28]
mov eax, dword [edx]
push eax
mov ecx, ebx
call fcn.0040ac80
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [edi + 4]
mov dword [esp + 0x20], eax
call fcn.00404c10
mov edx, dword [ebx + 0x78]
add dword [ebx + 0x74], edx
jmp case.0x40c3cb.124
lea ecx, [esp + 0x20]
call fcn.00401390
test eax, eax
jbe case.0x40c3cb.124
push 0
lea ecx, [esp + 0x24]
call fcn.00401390
push eax
mov eax, dword [ebx + 0x34]
push 5
push eax
call fcn.0040de20
add esp, 0x10
jmp case.0x40c3cb.124
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
lea ecx, [esp + 0x20]
jbe 0x40c988
push 1
call fcn.00401390
mov ecx, dword [ebx + 0x34]
push eax
push 5
push ecx
call fcn.0040de20
add esp, 0x10
jmp 0x40c9bb
call fcn.00401390
cmp eax, 1
jae 0x40c9bb
lea ecx, [esp + 0x20]
push 1
call fcn.00401390
mov edx, dword [ebx + 0x34]
push eax
push 0x14
push edx
call fcn.0040de20
add esp, 0x10
mov ecx, edi
push 1
call fcn.00403680
xor edi, edi
mov dword [esp + 0x30], edi
lea ecx, [esp + 0x20]
call fcn.00401390
cmp eax, 1
jb case.0x40c3cb.124
push 4
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
push ecx
mov ecx, ebx
call fcn.0040ac80
lea edx, [esp + 0x1c]
lea ecx, [edi + 4]
push edx
mov dword [esp + 0x20], eax
call fcn.00404c10
mov ecx, dword [ebx + 0x74]
mov eax, dword [ebx + 0x78]
add ecx, eax
mov dword [ebx + 0x74], ecx
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.00404c10
lea ecx, [esp + 0x20]
call fcn.00402050
lea ecx, [esp + 0x1a8]
xor esi, esi
call fcn.00401d80
lea ecx, [esp + 0x18c]
jmp 0x40bd3f
lea edx, [esp + 0x1a8]
push edx
call fcn.004112a0
add esp, 4
test al, al
jne 0x40ca4b
mov eax, dword [ebx + 0x34]
push 0x11
push eax
call fcn.0040de20
add esp, 8
jmp 0x40c187
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.004113c0
mov edi, eax
cmp edi, esi
je 0x40ca82
cmp dword [edi], 3
je 0x40ca82
mov edx, dword [edi + 0x20]
push edx
lea ecx, [esp + 0x1ac]
call fcn.00401800
push eax
mov eax, dword [ebx + 0x34]
push 0xd
push eax
jmp 0x40c17f
push 0x1c
call fcn.00412748
add esp, 4
cmp eax, esi
je 0x40ca9f
xor ecx, ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov esi, eax
jmp 0x40caa1
xor esi, esi
mov ecx, dword [ebx + 0x78]
add ecx, dword [ebx + 0x74]
mov dword [esi + 0x14], ecx
push str.proc
lea ecx, [esp + 0xd4]
mov byte [esp + 0x4c8], 0x19
mov dword [esp + 0x20], esi
call fcn.00402d30
lea edx, [esp + 0xd0]
push edx
lea ecx, [ebx + 0x10]
mov byte [esp + 0x4c8], 0x1b
call fcn.00407250
mov eax, dword [eax]
lea ecx, [esp + 0xd0]
mov dword [esi], eax
mov byte [esp + 0x4c4], 0x19
call fcn.00401d80
mov ecx, dword [ebx + 0x70]
mov dword [esi + 0x18], ecx
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x74]
add ecx, edx
test edi, edi
mov dword [ebx + 0x74], ecx
jne 0x40cb2e
mov eax, dword [ebx + 0x70]
mov ecx, dword [ebx + 0x38]
push eax
push 3
lea eax, [esp + 0x1b0]
push eax
call fcn.004116c0
mov ecx, dword [ebx + 0x48]
push esi
push eax
call fcn.00411020
jmp 0x40cb4c
lea ecx, [esp + 0x1a8]
push ecx
mov ecx, dword [ebx + 0x48]
call fcn.00410dc0
test eax, eax
je 0x40cb72
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x40cb72
mov dword [eax + 4], esi
lea edx, [esp + 0x1c]
push edx
mov ecx, ebx
call fcn.00404c10
xor esi, esi
lea ecx, [esp + 0x1a8]
call fcn.00401d80
lea ecx, [esp + 0x18c]
jmp 0x40bd3f
mov eax, dword [edi + 0x20]
push eax
lea ecx, [esp + 0x1ac]
call fcn.00401800
mov ecx, dword [ebx + 0x34]
push eax
push 0xd
push ecx
call fcn.0040de20
add esp, 0x10
jmp 0x40c368
cmp dword [ebx + 0x6c], 0x10
jb 0x40cba1
mov eax, dword [ebx + 0x58]
jmp 0x40cba4
lea eax, [ebx + 0x58]
mov edx, dword [ebx + 0x34]
push eax
push 0x1f
push edx
call fcn.0040de20
add esp, 0xc
lea ecx, [esp + 0x3c]
call fcn.004027d0
xor al, al
jmp 0x40cbed
mov ecx, dword [ebx + 0x4c]
push esi
call fcn.0040ef00
mov ecx, dword [ebx + 0x48]
call fcn.00410e20
mov ecx, dword [ebx + 0x34]
call fcn.0040d990
mov eax, dword [ebx + 0x34]
cmp dword [eax + 0x10], 2
lea ecx, [esp + 0x3c]
jge 0x40cbb7
call fcn.004027d0
mov al, 1
mov ecx, dword [esp + 0x4bc]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x4b4]
call fcn.00412dca
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret