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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416ddc
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 0x4167df
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x4167df
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x4167df
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416807
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416807
mov dword [eax + 8], 0xfffffade
jmp 0x416807
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4167fd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4167fd
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0x9cc5ec]
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.00416600
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416838
xor eax, eax
jmp 0x416844
call fcn.00424150
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416801
lea eax, [0x9ccb78]
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.004494b0
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.00416600
movzx eax, byte [esp + 0x10]
test al, al
je 0x4169bd
mov eax, dword [0x9f28f8]
cmp eax, 1
jne 0x4168b3
mov eax, 1
jmp 0x4168c1
cmp eax, 2
jne 0x4168bf
mov eax, 2
jmp 0x4168c1
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, [0x99560c]
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.004494b0
lea eax, [0x99562c]
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.004494b0
movzx eax, byte [esp + 0x23]
mov byte [0x9ccb8c], al
movzx eax, byte [0x9d6908]
test al, al
je 0x4169a5
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0x9d6938]
mov ecx, dword [0x9d693c]
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.00455640
mov eax, dword [0x9d6938]
mov ecx, dword [0x9d693c]
add eax, 1
adc ecx, 0
mov dword [0x9d6938], eax
mov dword [0x9d693c], ecx
mov eax, dword [0x9cc170]
mov dword [esp + 0x54], eax
mov ecx, dword [0x9cc174]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x4169ec
nop
lea eax, [0x9ccb78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004497d0
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 0x416a21
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.00402010
mov eax, dword [0x9d2358]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4169dd
jmp 0x416d25
call fcn.004187a0
lea eax, [0x781cf4]
mov dword [esp], eax
call fcn.00463430
mov eax, dword [0x9f232c]
mov dword [0x9ccbb0], eax
mov dword [0x9ccbb4], eax
mov ecx, dword [0x9f2348]
cmp ecx, eax
jge 0x416a56
mov dword [0x9ccbb0], ecx
lea eax, [0x9f3130]
mov dword [esp], eax
call fcn.00402280
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x9ccbec], eax
mov dword [0x9ccbe8], ecx
mov dword [0x9ccbd8], 0
mov dword [0x9ccbdc], 0
mov eax, dword [esp + 0x28]
mov dword [0x9ccb88], eax
call fcn.00465860
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0x9ccbbc], eax
mov dword [0x9ccbb8], ecx
mov dword [0x9ccbe4], eax
mov dword [0x9ccbe0], ecx
movzx eax, byte [0x9d6908]
test al, al
je 0x416b17
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.00455640
lea eax, [0x781dd0]
mov dword [esp], eax
call fcn.00463430
lea eax, [0x781cf8]
mov dword [esp], eax
call fcn.00463430
call fcn.00419780
nop
lea eax, [0x9ccbac]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402180
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0x9f232c]
lea ebx, [0x9f30e0]
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.0041e940
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0x9f2940]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419d70
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416bcb
mov byte [esp], 0
call fcn.00445590
lea eax, [0x9f2328]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402250
mov eax, dword [0x9f2328]
cmp eax, 1
jne 0x416bf3
mov eax, 1
jmp 0x416bf9
cmp eax, 2
sete al
mov byte [0x9f2714], al
test al, al
je 0x416c0a
mov eax, 1
jmp 0x416c11
movzx eax, byte [0x9f2715]
mov byte [0x9f2710], al
nop
mov dword [0x9ccb38], 0xffffffff
mov dword [0x9ccb44], 0xffffffff
call fcn.0041aaf0
call fcn.0041e7f0
lea eax, [0x9f2320]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402250
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, [0x416df0]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.00463430
lea eax, [0x99562c]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004497d0
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 0x416cef
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416ce7
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x416cf5
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x416cf5
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416d05
lea eax, [0x781d08]
mov dword [esp], eax
call fcn.004633d0
nop
lea eax, [0x9ccb78]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.004497d0
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.004388d0
lea eax, [0x763abb]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.004391d0
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00438fd0
lea eax, [0x762ebd]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.004391d0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00438e50
lea eax, [0x764388]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.004391d0
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00438e50
call fcn.00438af0
call fcn.00438940
lea eax, [0x7685c5]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00436c40
nop
call fcn.00463540
jmp fcn.00416770