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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4171a2
sub esp, 0x4c
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 0x4170cb
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x4170cb
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x4170cb
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416c61
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416c61
mov dword [eax + 8], 0xfffffade
jmp 0x416c61
inc dword [0x8ae22c]
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
call fcn.00416ac0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4170ba
xor eax, eax
test al, al
jne 0x416c5b
nop
lea eax, [0x8aeac0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00439f20
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0xc], ecx
call fcn.00416ac0
movzx eax, byte [esp + 0x10]
test al, al
je 0x41709a
mov eax, dword [esp + 0x50]
cmp eax, 2
sete al
mov byte [0x8aead4], al
mov eax, dword [0x8c129c]
cmp eax, 1
jne 0x417084
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x873128]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00439f20
movzx eax, byte [0x8b8e28]
test al, al
jne 0x417013
mov eax, dword [0x8adfd8]
mov dword [esp + 0x40], eax
mov ecx, dword [0x8adfdc]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x416d6e
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x416da3
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, 0x358
mov dword [esp], ebx
call fcn.00401f10
mov eax, dword [esp + 4]
mov ecx, dword [0x8b29cc]
cmp eax, ecx
je 0x416d5f
jmp 0x4170ed
call fcn.00418380
lea eax, [0x6bb054]
mov dword [esp], eax
call fcn.0044f3c0
mov eax, dword [0x8c0f50]
mov dword [0x8aeb00], eax
mov dword [0x8aeb04], eax
mov ecx, dword [0x8c0f58]
cmp eax, ecx
jle 0x416dd8
mov dword [0x8aeb00], ecx
lea eax, [0x8c45c0]
mov dword [esp], eax
call fcn.00402110
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0x8aeb38], eax
mov dword [0x8aeb3c], ecx
mov dword [0x8aeb28], 0
mov dword [0x8aeb2c], 0
mov eax, dword [esp + 0x14]
mov dword [0x8aead0], eax
call fcn.00451c50
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov dword [0x8aeb08], ecx
mov dword [0x8aeb0c], eax
mov dword [0x8aeb30], ecx
mov dword [0x8aeb34], eax
movzx eax, byte [0x8b8e28]
test al, al
jne 0x416fc4
lea eax, [0x6bb12c]
mov dword [esp], eax
call fcn.0044f3c0
lea eax, [0x6bb058]
mov dword [esp], eax
call fcn.0044f3c0
call fcn.00419280
inc dword [0x8aeafc]
lea eax, [0x8c15e0]
mov dword [esp], eax
call fcn.00415310
mov eax, dword [0x8c302c]
mov ecx, dword [0x8c3028]
mov dword [0x8aeb50], ecx
mov dword [0x8aeb54], eax
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416fb6
nop
lea eax, [0x8c0f4c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020f0
mov eax, dword [0x8c0f4c]
cmp eax, 1
jne 0x416fab
mov eax, 1
mov byte [0x8c1194], al
test al, al
je 0x416f9f
mov eax, 1
mov byte [0x8c1190], al
nop
mov dword [0x8aea98], 0xffffffff
mov dword [0x8aeaa4], 0xffffffff
call fcn.0041a370
call fcn.0041d950
lea eax, [0x8c0f40]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004020f0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [0x8c1610], ecx
mov dword [0x8c1614], eax
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea eax, [0x44c620]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x44]
mov dword [esp], eax
call fcn.0044f3c0
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416f8e
lea eax, [0x8aeac0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043a230
add esp, 0x4c
ret
nop
lea eax, [0x6bb064]
mov dword [esp], eax
call fcn.0044f360
jmp 0x416f6f
movzx eax, byte [0x8c1195]
jmp 0x416eea
cmp eax, 2
sete al
jmp 0x416ed7
mov byte [esp], 0
call fcn.00436490
jmp 0x416eac
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.00444680
jmp 0x416e53
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x8b8e5c]
mov ecx, dword [0x8b8e58]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
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.00444680
mov eax, dword [0x8b8e58]
add eax, 1
mov ecx, dword [0x8b8e5c]
mov dword [0x8b8e58], eax
adc ecx, 0
mov dword [0x8b8e5c], ecx
jmp 0x416d47
cmp eax, 2
jne 0x417093
mov eax, 2
jmp 0x416d11
xor eax, eax
jmp 0x416d11
nop
lea eax, [0x8aeac0]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.0043a230
add esp, 0x4c
ret
call fcn.0041ec60
cmp dword [esp], 0xffffffff
setne al
jmp 0x416c94
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4170e9
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4170e9
mov dword [eax + 8], 0xfffffade
add esp, 0x4c
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.0042bd10
lea eax, [0x6a35f4]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0042c6e0
mov eax, dword [esp + 0x1c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0042c520
lea eax, [0x6a2d19]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0042c6e0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042c3f0
lea eax, [0x6a3bde]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0042c6e0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0042c3f0
call fcn.0042bf30
call fcn.0042bd80
lea eax, [0x6a6a01]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0042aee0
nop
call fcn.0044f4e0
jmp fcn.00416be0