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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416e93
sub esp, 0x5c
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 0x4168bf
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x4168bf
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x4168bf
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4168e7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4168e7
mov dword [eax + 8], 0xfffffade
jmp 0x4168e7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4168dd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4168dd
mov dword [eax + 8], 0xfffffade
add esp, 0x5c
ret
inc dword [0x98a87c]
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
call fcn.004166d0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416918
xor eax, eax
jmp 0x416924
call fcn.00424900
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4168e1
lea eax, [0x98acf8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449c60
mov eax, dword [esp + 0x60]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x64]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0xc], ebx
call fcn.004166d0
movzx eax, byte [esp + 0x10]
test al, al
je 0x416a85
mov eax, dword [esp + 0x60]
cmp eax, 2
sete cl
mov byte [0x98ad0c], cl
mov ecx, dword [0x9b1b18]
cmp ecx, 1
jne 0x41699e
mov ecx, 1
jmp 0x4169ac
cmp ecx, 2
jne 0x4169aa
mov ecx, 2
jmp 0x4169ac
xor ecx, ecx
mov dword [esp + 0x20], ecx
lea eax, [0x950068]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449c60
lea eax, [0x950088]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449c60
movzx eax, byte [0x995ba8]
test al, al
je 0x416a6d
nop
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [0x995bd8]
mov ecx, dword [0x995bdc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455c50
mov eax, dword [0x995bd8]
add eax, 1
mov ecx, dword [0x995bdc]
mov dword [0x995bd8], eax
adc ecx, 0
mov dword [0x995bdc], ecx
mov eax, dword [0x98a3d0]
mov dword [esp + 0x50], eax
mov ecx, dword [0x98a3d4]
mov dword [esp + 0x34], ecx
xor edx, edx
jmp 0x416ab4
nop
lea eax, [0x98acf8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449f70
add esp, 0x5c
ret
mov ebx, dword [esp + 0x30]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x34]
cmp edx, ecx
jge 0x416ae9
mov dword [esp + 0x30], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x48], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00401f80
mov eax, dword [esp + 4]
mov ecx, dword [0x991600]
cmp ecx, eax
je 0x416aa5
jmp 0x416ddc
call fcn.004188c0
lea eax, [0x73b6e0]
mov dword [esp], eax
call fcn.00461e30
mov eax, dword [0x9b1618]
mov dword [0x98ad38], eax
mov dword [0x98ad3c], eax
mov ecx, dword [0x9b1634]
cmp ecx, eax
jge 0x416b1e
mov dword [0x98ad38], ecx
lea eax, [0x9b2380]
mov dword [esp], eax
call fcn.004021c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x98ad74], eax
mov dword [0x98ad70], ecx
mov dword [0x98ad60], 0
mov dword [0x98ad64], 0
mov eax, dword [esp + 0x20]
mov dword [0x98ad08], eax
call fcn.00464290
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [0x98ad44], eax
mov dword [0x98ad40], ecx
mov dword [0x98ad6c], eax
mov dword [0x98ad68], ecx
movzx eax, byte [0x995ba8]
test al, al
je 0x416bdf
nop
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 1
mov dword [esp + 0x44], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x40]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455c50
lea eax, [0x73b7b0]
mov dword [esp], eax
call fcn.00461e30
lea eax, [0x73b6e4]
mov dword [esp], eax
call fcn.00461e30
call fcn.00419950
inc dword [0x98ad34]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x9b1618]
lea ebx, [0x9b2300]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x60]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
call fcn.0041ec10
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [0x9b1bc0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419f90
mov eax, dword [esp + 0x20]
test eax, eax
je 0x416c82
mov byte [esp], 0
call fcn.00445eb0
lea eax, [0x9b1614]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402190
mov eax, dword [0x9b1614]
cmp eax, 1
jne 0x416caa
mov eax, 1
jmp 0x416cb0
cmp eax, 2
sete al
mov byte [0x9b1934], al
test al, al
je 0x416cc1
mov eax, 1
jmp 0x416cc8
movzx eax, byte [0x9b1935]
mov byte [0x9b1930], al
nop
mov dword [0x98acb8], 0xffffffff
mov dword [0x98acc4], 0xffffffff
call fcn.0041ad20
call fcn.0041ea90
lea eax, [0x9b160c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402190
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 + 0x4c], eax
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [0x416ea0]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
mov dword [esp], ecx
call fcn.00461e30
lea eax, [0x950088]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449f70
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416da6
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416d9e
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x416dac
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x416dac
mov eax, dword [esp + 0x20]
test eax, eax
je 0x416dbc
lea eax, [0x73b6f4]
mov dword [esp], eax
call fcn.00461dd0
nop
lea eax, [0x98acf8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449f70
add esp, 0x5c
ret
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x48]
mov eax, dword [eax]
mov dword [esp + 0x28], eax
call fcn.00439460
lea eax, [0x71a4f8]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00439d40
mov eax, dword [esp + 0x28]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00439b40
lea eax, [0x71938f]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00439d40
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004399e0
lea eax, [0x71b209]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00439d40
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004399e0
call fcn.00439680
call fcn.004394d0
lea eax, [0x72024b]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00437790
nop
call fcn.00461f40
jmp fcn.00416850