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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x416b7c
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 0x41657f
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x41657f
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x41657f
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4165a7
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4165a7
mov dword [eax + 8], 0xfffffade
jmp 0x4165a7
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x41659d
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x41659d
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0x8c19cc]
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.004163a0
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4165d8
xor eax, eax
jmp 0x4165e4
call fcn.00423ef0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x4165a1
lea eax, [0x8c1f58]
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.00449150
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.004163a0
movzx eax, byte [esp + 0x10]
test al, al
je 0x41675d
mov eax, dword [0x8e7c58]
cmp eax, 1
jne 0x416653
mov eax, 1
jmp 0x416661
cmp eax, 2
jne 0x41665f
mov eax, 2
jmp 0x416661
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, [0x88b544]
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.00449150
lea eax, [0x88b564]
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.00449150
movzx eax, byte [esp + 0x23]
mov byte [0x8c1f6c], al
movzx eax, byte [0x8cbca8]
test al, al
je 0x416745
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0x8cbcd8]
mov ecx, dword [0x8cbcdc]
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.004551f0
mov eax, dword [0x8cbcd8]
mov ecx, dword [0x8cbcdc]
add eax, 1
adc ecx, 0
mov dword [0x8cbcd8], eax
mov dword [0x8cbcdc], ecx
mov eax, dword [0x8c15e8]
mov dword [esp + 0x54], eax
mov ecx, dword [0x8c15ec]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x41678c
nop
lea eax, [0x8c1f58]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449470
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 0x4167c1
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 [0x8c76f8]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x41677d
jmp 0x416ac5
call fcn.00418540
lea eax, [0x6e4428]
mov dword [esp], eax
call fcn.00462c70
mov eax, dword [0x8e76b8]
mov dword [0x8c1f90], eax
mov dword [0x8c1f94], eax
mov ecx, dword [0x8e76d4]
cmp ecx, eax
jge 0x4167f6
mov dword [0x8c1f90], ecx
lea eax, [0x8e8490]
mov dword [esp], eax
call fcn.00402280
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x8c1fcc], eax
mov dword [0x8c1fc8], ecx
mov dword [0x8c1fb8], 0
mov dword [0x8c1fbc], 0
mov eax, dword [esp + 0x28]
mov dword [0x8c1f68], eax
call fcn.004650a0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0x8c1f9c], eax
mov dword [0x8c1f98], ecx
mov dword [0x8c1fc4], eax
mov dword [0x8c1fc0], ecx
movzx eax, byte [0x8cbca8]
test al, al
je 0x4168b7
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.004551f0
lea eax, [0x6e4500]
mov dword [esp], eax
call fcn.00462c70
lea eax, [0x6e442c]
mov dword [esp], eax
call fcn.00462c70
call fcn.00419520
nop
lea eax, [0x8c1f8c]
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 [0x8e76b8]
lea ebx, [0x8e8440]
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.0041e6e0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0x8e7ca0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419b10
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41696b
mov byte [esp], 0
call fcn.00445230
lea eax, [0x8e76b4]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402250
mov eax, dword [0x8e76b4]
cmp eax, 1
jne 0x416993
mov eax, 1
jmp 0x416999
cmp eax, 2
sete al
mov byte [0x8e7a74], al
test al, al
je 0x4169aa
mov eax, 1
jmp 0x4169b1
movzx eax, byte [0x8e7a75]
mov byte [0x8e7a70], al
nop
mov dword [0x8c1f18], 0xffffffff
mov dword [0x8c1f24], 0xffffffff
call fcn.0041a890
call fcn.0041e590
lea eax, [0x8e76ac]
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, [0x416b90]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.00462c70
lea eax, [0x88b564]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449470
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 0x416a8f
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416a87
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x416a95
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x416a95
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416aa5
lea eax, [0x6e443c]
mov dword [esp], eax
call fcn.00462c10
nop
lea eax, [0x8c1f58]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449470
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.00438530
lea eax, [0x6ca27e]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00438e30
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00438c30
lea eax, [0x6c9755]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00438e30
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.00438ab0
lea eax, [0x6ca93f]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00438e30
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00438ab0
call fcn.00438750
call fcn.004385a0
lea eax, [0x6cdc91]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004368a0
nop
call fcn.00462d80
jmp fcn.00416510