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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41869e
sub esp, 0x50
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x4185c5
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x4185c5
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x4185c5
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4180c1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4180c1
mov dword [eax + 8], 0xfffffade
jmp 0x4180c1
inc dword [0x9d3d5c]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0xc], ebx
call fcn.00417f20
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4185b4
xor eax, eax
test al, al
jne 0x4180bb
nop
lea eax, [0x9f183c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00443ff0
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xc], ecx
call fcn.00417f20
movzx eax, byte [esp + 0x10]
test al, al
je 0x418594
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x9f1850], al
mov eax, dword [0x9f1078]
cmp eax, 1
jne 0x41857e
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x97c1a8]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00443ff0
nop
lea eax, [0x97c1c8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00443ff0
movzx eax, byte [0x9dcf28]
test al, al
jne 0x41850d
mov eax, dword [0x9d3948]
mov dword [esp + 0x44], eax
mov ecx, dword [0x9d394c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4181f2
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
jle 0x418227
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x3c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00402220
mov eax, dword [esp + 4]
mov ecx, dword [0x9d89ac]
cmp eax, ecx
je 0x4181e3
jmp 0x4185e7
call fcn.00419a50
lea eax, [0x78a858]
mov dword [esp], eax
call fcn.0045ddf0
mov eax, dword [0x9f0c34]
mov dword [0x9f187c], eax
mov dword [0x9f1880], eax
mov ecx, dword [0x9f0c48]
cmp eax, ecx
jle 0x41825c
mov dword [0x9f187c], ecx
lea eax, [0x9f4738]
mov dword [esp], eax
call fcn.00402420
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x9f18b8], eax
mov dword [0x9f18b4], ecx
mov dword [0x9f18a4], 0
mov dword [0x9f18a8], 0
mov eax, dword [esp + 0x14]
mov dword [0x9f184c], eax
call fcn.00460510
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x9f1888], eax
mov dword [0x9f1884], ecx
mov dword [0x9f18b0], eax
mov dword [0x9f18ac], ecx
movzx eax, byte [0x9dcf28]
test al, al
jne 0x4184be
lea eax, [0x78a934]
mov dword [esp], eax
call fcn.0045ddf0
lea eax, [0x78a85c]
mov dword [esp], eax
call fcn.0045ddf0
call fcn.0041a910
inc dword [0x9f1878]
lea eax, [0x9f14a0]
mov dword [esp], eax
call fcn.00416570
mov eax, dword [0x9f3188]
mov ecx, dword [0x9f318c]
mov dword [0x9f18cc], eax
mov dword [0x9f18d0], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4184b0
nop
lea eax, [0x9f0c30]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004023f0
mov eax, dword [0x9f0c30]
cmp eax, 1
jne 0x4184a5
mov eax, 1
mov byte [0x9f0ee4], al
test al, al
je 0x418499
mov eax, 1
mov byte [0x9f0ee0], al
nop
mov dword [0x9f1818], 0xffffffff
mov dword [0x9f1824], 0xffffffff
call fcn.0041af50
call fcn.0041e9f0
lea eax, [0x9f0c24]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004023f0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0x9f14d0], eax
mov dword [0x9f14d4], ecx
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x78]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x457090]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045ddf0
nop
lea eax, [0x97c1c8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00444300
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x418491
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x418489
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x418478
lea eax, [0x9f183c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00444300
add esp, 0x50
ret
nop
lea eax, [0x78a870]
mov dword [esp], eax
call fcn.0045dd90
jmp 0x418459
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x418457
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x418457
movzx eax, byte [0x9f0ee5]
jmp 0x41836e
cmp eax, 2
sete al
jmp 0x41835b
mov byte [esp], 0
call fcn.004404f0
jmp 0x418330
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0044efd0
jmp 0x4182d7
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x9dcf58]
mov ecx, dword [0x9dcf5c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x34]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.0044efd0
mov eax, dword [0x9dcf58]
add eax, 1
mov ecx, dword [0x9dcf5c]
mov dword [0x9dcf58], eax
adc ecx, 0
mov dword [0x9dcf5c], ecx
jmp 0x4181cb
cmp eax, 2
jne 0x41858d
mov eax, 2
jmp 0x418171
xor eax, eax
jmp 0x418171
nop
lea eax, [0x9f183c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00444300
add esp, 0x50
ret
call fcn.00420e80
cmp dword [esp], 0xffffffff
setne al
jmp 0x4180f4
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4185e3
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4185e3
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.00434860
lea eax, [0x769d67]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00435160
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00434f70
lea eax, [0x7690ba]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00435160
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00434e00
lea eax, [0x76a721]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00435160
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00434e00
call fcn.00434a80
call fcn.004348d0
lea eax, [0x76e945]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00432fc0
nop
call fcn.0045df10
jmp fcn.00418040