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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416963
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 0x41638f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41638f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41638f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4163b7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4163b7
mov dword [eax + 8], 0xfffffade
jmp 0x4163b7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4163ad
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4163ad
mov dword [eax + 8], 0xfffffade
add esp, 0x5c
ret
inc dword [0x85575c]
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.004161a0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4163e8
xor eax, eax
jmp 0x4163f4
call fcn.004243d0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4163b1
lea eax, [0x855b78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449420
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.004161a0
movzx eax, byte [esp + 0x10]
test al, al
je 0x416555
mov eax, dword [esp + 0x60]
cmp eax, 2
sete cl
mov byte [0x855b8c], cl
mov ecx, dword [0x87beb8]
cmp ecx, 1
jne 0x41646e
mov ecx, 1
jmp 0x41647c
cmp ecx, 2
jne 0x41647a
mov ecx, 2
jmp 0x41647c
xor ecx, ecx
mov dword [esp + 0x20], ecx
lea eax, [0x81f798]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449420
lea eax, [0x81f7b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.00449420
movzx eax, byte [0x85ffe8]
test al, al
je 0x41653d
nop
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [0x860018]
mov ecx, dword [0x86001c]
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.00455410
mov eax, dword [0x860018]
add eax, 1
mov ecx, dword [0x86001c]
mov dword [0x860018], eax
adc ecx, 0
mov dword [0x86001c], ecx
mov eax, dword [0x855428]
mov dword [esp + 0x50], eax
mov ecx, dword [0x85542c]
mov dword [esp + 0x34], ecx
xor edx, edx
jmp 0x416584
nop
lea eax, [0x855b78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449730
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 0x4165b9
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 [0x85ba40]
cmp ecx, eax
je 0x416575
jmp 0x4168ac
call fcn.00418390
lea eax, [0x67534c]
mov dword [esp], eax
call fcn.004611a0
mov eax, dword [0x87ba18]
mov dword [0x855bb8], eax
mov dword [0x855bbc], eax
mov ecx, dword [0x87ba34]
cmp ecx, eax
jge 0x4165ee
mov dword [0x855bb8], ecx
lea eax, [0x87c720]
mov dword [esp], eax
call fcn.004021c0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x855bf4], eax
mov dword [0x855bf0], ecx
mov dword [0x855be0], 0
mov dword [0x855be4], 0
mov eax, dword [esp + 0x20]
mov dword [0x855b88], eax
call fcn.004635b0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [0x855bc4], eax
mov dword [0x855bc0], ecx
mov dword [0x855bec], eax
mov dword [0x855be8], ecx
movzx eax, byte [0x85ffe8]
test al, al
je 0x4166af
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.00455410
lea eax, [0x67541c]
mov dword [esp], eax
call fcn.004611a0
lea eax, [0x675350]
mov dword [esp], eax
call fcn.004611a0
call fcn.00419420
inc dword [0x855bb4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, dword [0x87ba18]
lea ebx, [0x87c6a0]
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.0041e6e0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
lea edx, [0x87bf60]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419a60
mov eax, dword [esp + 0x20]
test eax, eax
je 0x416752
mov byte [esp], 0
call fcn.00445670
lea eax, [0x87ba14]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402190
mov eax, dword [0x87ba14]
cmp eax, 1
jne 0x41677a
mov eax, 1
jmp 0x416780
cmp eax, 2
sete al
mov byte [0x87bd04], al
test al, al
je 0x416791
mov eax, 1
jmp 0x416798
movzx eax, byte [0x87bd05]
mov byte [0x87bd00], al
nop
mov dword [0x855b38], 0xffffffff
mov dword [0x855b44], 0xffffffff
call fcn.0041a7f0
call fcn.0041e560
lea eax, [0x87ba0c]
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, [0x416970]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x54]
mov dword [esp], ecx
call fcn.004611a0
lea eax, [0x81f7b8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449730
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 0x416876
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41686e
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x41687c
mov eax, dword [esp + 0x20]
test eax, eax
jmp 0x41687c
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41688c
lea eax, [0x675360]
mov dword [esp], eax
call fcn.00461140
nop
lea eax, [0x855b78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449730
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.00438c20
lea eax, [0x65bf3b]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00439500
mov eax, dword [esp + 0x28]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00439300
lea eax, [0x65b186]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00439500
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004391a0
lea eax, [0x65ca64]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00439500
mov dword [esp + 4], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call fcn.004391a0
call fcn.00438e40
call fcn.00438c90
lea eax, [0x660d4f]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004370f0
nop
call fcn.004612b0
jmp fcn.00416320