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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416c9c
sub esp, 0x60
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 0x41669f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41669f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41669f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4166c7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4166c7
mov dword [eax + 8], 0xfffffade
jmp 0x4166c7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4166bd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4166bd
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0xa8570c]
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.004164c0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4166f8
xor eax, eax
jmp 0x416704
call fcn.00424010
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4166c1
lea eax, [0xa85e78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.004492e0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x6c]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x70]
mov dword [esp + 0xc], ebx
call fcn.004164c0
movzx eax, byte [esp + 0x10]
test al, al
je 0x41687d
mov eax, dword [0xaab278]
cmp eax, 1
jne 0x416773
mov eax, 1
jmp 0x416781
cmp eax, 2
jne 0x41677f
mov eax, 2
jmp 0x416781
xor eax, eax
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x64]
cmp ecx, 2
sete dl
mov byte [esp + 0x23], dl
lea ebx, [0xa48370]
mov dword [esp], ebx
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.004492e0
lea eax, [0xa48390]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov byte [esp + 0x10], 0x12
call fcn.004492e0
movzx eax, byte [esp + 0x23]
mov byte [0xa85e8c], al
movzx eax, byte [0xa8f1c8]
test al, al
je 0x416865
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0xa8f1f8]
mov ecx, dword [0xa8f1fc]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], ecx
mov byte [esp], 7
mov dword [esp + 4], 3
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455720
mov eax, dword [0xa8f1f8]
mov ecx, dword [0xa8f1fc]
add eax, 1
adc ecx, 0
mov dword [0xa8f1f8], eax
mov dword [0xa8f1fc], ecx
mov eax, dword [0xa851d8]
mov dword [esp + 0x54], eax
mov ecx, dword [0xa851dc]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x4168ac
nop
lea eax, [0xa85e78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449600
add esp, 0x60
ret
mov ebx, dword [esp + 0x34]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jge 0x4168e1
mov dword [esp + 0x34], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x4c], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00401fd0
mov eax, dword [0xa8ac18]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x41689d
jmp 0x416be5
call fcn.00418660
lea eax, [0x7e0d28]
mov dword [esp], eax
call fcn.00462e90
mov eax, dword [0xaaac54]
mov dword [0xa85eb0], eax
mov dword [0xa85eb4], eax
mov ecx, dword [0xaaac70]
cmp ecx, eax
jge 0x416916
mov dword [0xa85eb0], ecx
lea eax, [0xaabab0]
mov dword [esp], eax
call fcn.00402240
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xa85eec], eax
mov dword [0xa85ee8], ecx
mov dword [0xa85ed8], 0
mov dword [0xa85edc], 0
mov eax, dword [esp + 0x28]
mov dword [0xa85e88], eax
call fcn.004652d0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0xa85ebc], eax
mov dword [0xa85eb8], ecx
mov dword [0xa85ee4], eax
mov dword [0xa85ee0], ecx
movzx eax, byte [0xa8f1c8]
test al, al
je 0x4169d7
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x44], 1
mov dword [esp + 0x48], 0
mov byte [esp], 9
mov dword [esp + 4], 0xffffffff
lea eax, [esp + 0x44]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 1
call fcn.00455720
lea eax, [0x7e0e00]
mov dword [esp], eax
call fcn.00462e90
lea eax, [0x7e0d2c]
mov dword [esp], eax
call fcn.00462e90
call fcn.00419640
nop
lea eax, [0xa85eac]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402140
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0xaaac54]
lea ebx, [0xaaba60]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x1c], eax
call fcn.0041e800
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0xaab2c0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419c30
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416a8b
mov byte [esp], 0
call fcn.004453c0
lea eax, [0xaaac50]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402210
mov eax, dword [0xaaac50]
cmp eax, 1
jne 0x416ab3
mov eax, 1
jmp 0x416ab9
cmp eax, 2
sete al
mov byte [0xaab024], al
test al, al
je 0x416aca
mov eax, 1
jmp 0x416ad1
movzx eax, byte [0xaab025]
mov byte [0xaab020], al
nop
mov dword [0xa85e38], 0xffffffff
mov dword [0xa85e44], 0xffffffff
call fcn.0041a9b0
call fcn.0041e6b0
lea eax, [0xaaac48]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402210
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 + 0x50], eax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
lea ecx, [0x416cb0]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.00462e90
lea eax, [0xa48390]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449600
nop
mov eax, dword fs:[0x14]
mov eax, dword [eax]
mov ecx, dword [esp + 0x50]
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416baf
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416ba7
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x416bb5
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x416bb5
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416bc5
lea eax, [0x7e0d3c]
mov dword [esp], eax
call fcn.00462e30
nop
lea eax, [0xa85e78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449600
add esp, 0x60
ret
mov dword [esp + 0x24], ecx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.00438700
lea eax, [0x7b95f0]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00439000
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00438e00
lea eax, [0x7b82e8]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00439000
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00438c80
lea eax, [0x7ba460]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00439000
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00438c80
call fcn.00438920
call fcn.00438770
lea eax, [0x7c04eb]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00436a70
nop
call fcn.00462fa0
jmp fcn.00416630