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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x41666e
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 0x416595
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x416595
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x416595
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416091
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416091
mov dword [eax + 8], 0xfffffade
jmp 0x416091
inc dword [0x59372c]
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.00415ef0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416584
xor eax, eax
test al, al
jne 0x41608b
nop
lea eax, [0x5b063c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043fe70
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.00415ef0
movzx eax, byte [esp + 0x10]
test al, al
je 0x416564
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x5b0650], al
mov eax, dword [0x5b0018]
cmp eax, 1
jne 0x41654e
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x57e0e8]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043fe70
nop
lea eax, [0x57e108]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.0043fe70
movzx eax, byte [0x59c0a8]
test al, al
jne 0x4164dd
mov eax, dword [0x5935e0]
mov dword [esp + 0x44], eax
mov ecx, dword [0x5935e4]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4161c2
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
jle 0x4161f7
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.00401fa0
mov eax, dword [esp + 4]
mov ecx, dword [0x597b2c]
cmp eax, ecx
je 0x4161b3
jmp 0x4165b7
call fcn.00417a20
lea eax, [0x4f093c]
mov dword [esp], eax
call fcn.00457f50
mov eax, dword [0x5afd8c]
mov dword [0x5b067c], eax
mov dword [0x5b0680], eax
mov ecx, dword [0x5afda0]
cmp eax, ecx
jle 0x41622c
mov dword [0x5b067c], ecx
lea eax, [0x5b2d38]
mov dword [esp], eax
call fcn.004021a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5b06b8], eax
mov dword [0x5b06b4], ecx
mov dword [0x5b06a4], 0
mov dword [0x5b06a8], 0
mov eax, dword [esp + 0x14]
mov dword [0x5b064c], eax
call fcn.0045a5f0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x5b0688], eax
mov dword [0x5b0684], ecx
mov dword [0x5b06b0], eax
mov dword [0x5b06ac], ecx
movzx eax, byte [0x59c0a8]
test al, al
jne 0x41648e
lea eax, [0x4f09fc]
mov dword [esp], eax
call fcn.00457f50
lea eax, [0x4f0940]
mov dword [esp], eax
call fcn.00457f50
call fcn.004188e0
inc dword [0x5b0678]
lea eax, [0x5b03a0]
mov dword [esp], eax
call fcn.004146e0
mov eax, dword [0x5b1788]
mov ecx, dword [0x5b178c]
mov dword [0x5b06cc], eax
mov dword [0x5b06d0], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416480
nop
lea eax, [0x5afd88]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402170
mov eax, dword [0x5afd88]
cmp eax, 1
jne 0x416475
mov eax, 1
mov byte [0x5afef4], al
test al, al
je 0x416469
mov eax, 1
mov byte [0x5afef0], al
nop
mov dword [0x5b0618], 0xffffffff
mov dword [0x5b0624], 0xffffffff
call fcn.00418f20
call fcn.0041c9c0
lea eax, [0x5afd7c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402170
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0x5b03d0], eax
mov dword [0x5b03d4], 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, [0x452940]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.00457f50
nop
lea eax, [0x57e108]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440180
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 0x416461
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416459
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416448
lea eax, [0x5b063c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440180
add esp, 0x50
ret
nop
lea eax, [0x4f0950]
mov dword [esp], eax
call fcn.00457ef0
jmp 0x416429
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416427
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416427
movzx eax, byte [0x5afef5]
jmp 0x41633e
cmp eax, 2
sete al
jmp 0x41632b
mov byte [esp], 0
call fcn.0043da20
jmp 0x416300
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.0044a940
jmp 0x4162a7
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x59c0d8]
mov ecx, dword [0x59c0dc]
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.0044a940
mov eax, dword [0x59c0d8]
add eax, 1
mov ecx, dword [0x59c0dc]
mov dword [0x59c0d8], eax
adc ecx, 0
mov dword [0x59c0dc], ecx
jmp 0x41619b
cmp eax, 2
jne 0x41655d
mov eax, 2
jmp 0x416141
xor eax, eax
jmp 0x416141
nop
lea eax, [0x5b063c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00440180
add esp, 0x50
ret
call fcn.0041ee50
cmp dword [esp], 0xffffffff
setne al
jmp 0x4160c4
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4165b3
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4165b3
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.00431e00
lea eax, [0x4e5dd0]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00432700
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00432510
lea eax, [0x4e5701]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00432700
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.004323a0
lea eax, [0x4e62a7]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00432700
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.004323a0
call fcn.00432020
call fcn.00431e70
lea eax, [0x4e870b]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004307d0
nop
call fcn.00458070
jmp fcn.00416010