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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416c7e
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 0x416ba5
mov edx, dword [ecx + 0x78]
cmp edx, 1
jg 0x416ba5
mov ebx, dword [ecx + 0x74]
test ebx, ebx
jne 0x416ba5
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x4166a1
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4166a1
mov dword [eax + 8], 0xfffffade
jmp 0x4166a1
inc dword [0x5a682c]
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.00416500
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416b94
xor eax, eax
test al, al
jne 0x41669b
nop
lea eax, [0x5c3f7c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004402e0
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.00416500
movzx eax, byte [esp + 0x10]
test al, al
je 0x416b74
mov eax, dword [esp + 0x54]
cmp eax, 2
sete al
mov byte [0x5c3f90], al
mov eax, dword [0x5c3958]
cmp eax, 1
jne 0x416b5e
mov eax, 1
mov dword [esp + 0x14], eax
lea ecx, [0x5930f0]
mov dword [esp], ecx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004402e0
nop
lea eax, [0x593110]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004402e0
movzx eax, byte [0x5af9c8]
test al, al
jne 0x416aed
mov eax, dword [0x5a6660]
mov dword [esp + 0x44], eax
mov ecx, dword [0x5a6664]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x4167d2
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
cmp ecx, edx
jle 0x416807
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 [0x5ab44c]
cmp eax, ecx
je 0x4167c3
jmp 0x416bc7
call fcn.00418030
lea eax, [0x4fb688]
mov dword [esp], eax
call fcn.004581f0
mov eax, dword [0x5c36a8]
mov dword [0x5c3fbc], eax
mov dword [0x5c3fc0], eax
mov ecx, dword [0x5c36c0]
cmp eax, ecx
jle 0x41683c
mov dword [0x5c3fbc], ecx
lea eax, [0x5c6678]
mov dword [esp], eax
call fcn.004021a0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5c3ff8], eax
mov dword [0x5c3ff4], ecx
mov dword [0x5c3fe4], 0
mov dword [0x5c3fe8], 0
mov eax, dword [esp + 0x14]
mov dword [0x5c3f8c], eax
call fcn.0045a7c0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x5c3fc8], eax
mov dword [0x5c3fc4], ecx
mov dword [0x5c3ff0], eax
mov dword [0x5c3fec], ecx
movzx eax, byte [0x5af9c8]
test al, al
jne 0x416a9e
lea eax, [0x4fb744]
mov dword [esp], eax
call fcn.004581f0
lea eax, [0x4fb68c]
mov dword [esp], eax
call fcn.004581f0
call fcn.00418ef0
inc dword [0x5c3fb8]
lea eax, [0x5c3ce0]
mov dword [esp], eax
call fcn.00414cf0
mov eax, dword [0x5c50c8]
mov ecx, dword [0x5c50cc]
mov dword [0x5c400c], eax
mov dword [0x5c4010], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416a90
nop
lea eax, [0x5c36a4]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402170
mov eax, dword [0x5c36a4]
cmp eax, 1
jne 0x416a85
mov eax, 1
mov byte [0x5c3834], al
test al, al
je 0x416a79
mov eax, 1
mov byte [0x5c3830], al
nop
mov dword [0x5c3f58], 0xffffffff
mov dword [0x5c3f64], 0xffffffff
call fcn.00419530
call fcn.0041cfd0
lea eax, [0x5c3698]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402170
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov dword [0x5c3d10], eax
mov dword [0x5c3d14], 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, [0x452fb0]
mov dword [esp + 0x48], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x48]
mov dword [esp], ecx
call fcn.004581f0
nop
lea eax, [0x593110]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004405f0
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 0x416a71
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416a69
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x416a58
lea eax, [0x5c3f7c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004405f0
add esp, 0x50
ret
nop
lea eax, [0x4fb69c]
mov dword [esp], eax
call fcn.00458190
jmp 0x416a39
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416a37
mov eax, dword [esp + 0x14]
test eax, eax
jmp 0x416a37
movzx eax, byte [0x5c3835]
jmp 0x41694e
cmp eax, 2
sete al
jmp 0x41693b
mov byte [esp], 0
call fcn.0043de90
jmp 0x416910
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.0044ad40
jmp 0x4168b7
nop
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov eax, dword [0x5af9f8]
mov ecx, dword [0x5af9fc]
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.0044ad40
mov eax, dword [0x5af9f8]
add eax, 1
mov ecx, dword [0x5af9fc]
mov dword [0x5af9f8], eax
adc ecx, 0
mov dword [0x5af9fc], ecx
jmp 0x4167ab
cmp eax, 2
jne 0x416b6d
mov eax, 2
jmp 0x416751
xor eax, eax
jmp 0x416751
nop
lea eax, [0x5c3f7c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004405f0
add esp, 0x50
ret
call fcn.0041f460
cmp dword [esp], 0xffffffff
setne al
jmp 0x4166d4
nop
mov edx, dword [ecx + 0x78]
lea ebx, [edx - 1]
mov dword [ecx + 0x78], ebx
cmp edx, 1
jne 0x416bc3
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416bc3
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.004322f0
lea eax, [0x4f1232]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00432c00
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00432a00
lea eax, [0x4f0b4f]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00432c00
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00432890
lea eax, [0x4f172d]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00432c00
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00432890
call fcn.00432510
call fcn.00432360
lea eax, [0x4f3c7b]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00430e70
nop
call fcn.00458300
jmp fcn.00416620