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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416ba8
sub esp, 0x50
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov ecx, dword [eax + 0x18]
test byte [eax], al
mov eax, dword fs:[0x14]
mov eax, dword [eax]
cmp dword [ecx], eax
je 0x4165ff
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x4165ff
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x4165ff
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416627
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416627
mov dword [eax + 8], 0xfffffade
jmp 0x416627
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41661d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41661d
mov dword [eax + 8], 0xfffffade
add esp, 0x50
ret
inc dword [0x89299c]
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.00416430
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416658
xor eax, eax
jmp 0x416664
call fcn.004227e0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416621
lea eax, [0x892d58]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446b90
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.00416430
movzx eax, byte [esp + 0x10]
test al, al
je 0x4167c5
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x892d6c], al
mov eax, dword [0x8b9a98]
cmp eax, 1
jne 0x4166de
mov eax, 1
jmp 0x4166ec
cmp eax, 2
jne 0x4166ea
mov eax, 2
jmp 0x4166ec
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x85843c]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446b90
lea eax, [0x85845c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00446b90
movzx eax, byte [0x89dc08]
test al, al
je 0x4167ad
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x89dc38]
mov ecx, dword [0x89dc3c]
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.004523d0
mov eax, dword [0x89dc38]
add eax, 1
mov ecx, dword [0x89dc3c]
mov dword [0x89dc38], eax
adc ecx, 0
mov dword [0x89dc3c], ecx
mov eax, dword [0x892798]
mov dword [esp + 0x44], eax
mov ecx, dword [0x89279c]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4167f4
nop
lea eax, [0x892d58]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446ea0
add esp, 0x50
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x416829
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.00401c50
mov eax, dword [esp + 4]
mov ecx, dword [0x899650]
cmp ecx, eax
je 0x4167e5
jmp 0x416af1
call fcn.00418560
lea eax, [0x6c8504]
mov dword [esp], eax
call fcn.0045e5b0
mov eax, dword [0x8b9610]
mov dword [0x892d98], eax
mov dword [0x892d9c], eax
mov ecx, dword [0x8b962c]
cmp ecx, eax
jge 0x41685e
mov dword [0x892d98], ecx
lea eax, [0x8ba110]
mov dword [esp], eax
call fcn.00401e90
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x892dd4], eax
mov dword [0x892dd0], ecx
mov dword [0x892dc0], 0
mov dword [0x892dc4], 0
mov eax, dword [esp + 0x14]
mov dword [0x892d68], eax
call fcn.004609f0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x892da4], eax
mov dword [0x892da0], ecx
mov dword [0x892dcc], eax
mov dword [0x892dc8], ecx
movzx eax, byte [0x89dc08]
test al, al
je 0x41691f
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.004523d0
lea eax, [0x6c85d0]
mov dword [esp], eax
call fcn.0045e5b0
lea eax, [0x6c8508]
mov dword [esp], eax
call fcn.0045e5b0
call fcn.00419570
inc dword [0x892d94]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x8b9610]
lea ebx, [0x8ba0a0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041d880
mov eax, dword [0x8ba100]
mov ecx, dword [0x8ba104]
mov dword [0x892de8], eax
mov dword [0x892dec], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416997
mov byte [esp], 0
call fcn.00442f60
lea eax, [0x8b960c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e60
mov eax, dword [0x8b960c]
cmp eax, 1
jne 0x4169bf
mov eax, 1
jmp 0x4169c5
cmp eax, 2
sete al
mov byte [0x8b98c4], al
test al, al
je 0x4169d6
mov eax, 1
jmp 0x4169dd
movzx eax, byte [0x8b98c5]
mov byte [0x8b98c0], al
nop
mov dword [0x892d18], 0xffffffff
mov dword [0x892d24], 0xffffffff
call fcn.00419b60
call fcn.0041d790
lea eax, [0x8b9604]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00401e60
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
lea ecx, [0x416bc0]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.0045e5b0
lea eax, [0x85845c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446ea0
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416abb
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416ab3
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416ac1
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416ac1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x416ad1
lea eax, [0x6c8518]
mov dword [esp], eax
call fcn.0045e550
nop
lea eax, [0x892d58]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00446ea0
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.00436930
lea eax, [0x6b4c7f]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00437210
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00437010
lea eax, [0x6b4387]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00437210
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00436eb0
lea eax, [0x6b52ea]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00437210
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00436eb0
call fcn.00436b50
call fcn.004369a0
lea eax, [0x6b80bc]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00434e00
nop
call fcn.0045e6c0
jmp fcn.00416590