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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4169dc
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 0x4163df
mov edx, dword [ecx + 0x7c]
cmp edx, 1
jg 0x4163df
mov ebx, dword [ecx + 0x78]
test ebx, ebx
jne 0x4163df
nop
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x416407
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x416407
mov dword [eax + 8], 0xfffffade
jmp 0x416407
nop
mov edx, dword [ecx + 0x7c]
lea ebx, [edx - 1]
mov dword [ecx + 0x7c], ebx
cmp edx, 1
jne 0x4163fd
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4163fd
mov dword [eax + 8], 0xfffffade
add esp, 0x60
ret
inc dword [0xc0588c]
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.00416200
movzx eax, byte [esp + 0x10]
test al, al
jne 0x416438
xor eax, eax
jmp 0x416444
call fcn.00423d50
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x416401
lea eax, [0xc05fb8]
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.00449020
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.00416200
movzx eax, byte [esp + 0x10]
test al, al
je 0x4165bd
mov eax, dword [0xc2bb58]
cmp eax, 1
jne 0x4164b3
mov eax, 1
jmp 0x4164c1
cmp eax, 2
jne 0x4164bf
mov eax, 2
jmp 0x4164c1
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, [0x8ff334]
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.00449020
lea eax, [0x8ff354]
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.00449020
movzx eax, byte [esp + 0x23]
mov byte [0xc05fcc], al
movzx eax, byte [0xc0fb28]
test al, al
je 0x4165a5
nop
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
mov eax, dword [0xc0fb58]
mov ecx, dword [0xc0fb5c]
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.004550f0
mov eax, dword [0xc0fb58]
mov ecx, dword [0xc0fb5c]
add eax, 1
adc ecx, 0
mov dword [0xc0fb58], eax
mov dword [0xc0fb5c], ecx
mov eax, dword [0xc05570]
mov dword [esp + 0x54], eax
mov ecx, dword [0xc05574]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x4165ec
nop
lea eax, [0xc05fb8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449340
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 0x416621
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 [0xc0b578]
mov ecx, dword [esp + 4]
cmp ecx, eax
je 0x4165dd
jmp 0x416925
call fcn.004183a0
lea eax, [0x72be78]
mov dword [esp], eax
call fcn.004627c0
mov eax, dword [0xc2b570]
mov dword [0xc05ff0], eax
mov dword [0xc05ff4], eax
mov ecx, dword [0xc2b58c]
cmp ecx, eax
jge 0x416656
mov dword [0xc05ff0], ecx
lea eax, [0xc2c430]
mov dword [esp], eax
call fcn.00402280
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0xc0602c], eax
mov dword [0xc06028], ecx
mov dword [0xc06018], 0
mov dword [0xc0601c], 0
mov eax, dword [esp + 0x28]
mov dword [0xc05fc8], eax
call fcn.00464c00
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0xc05ffc], eax
mov dword [0xc05ff8], ecx
mov dword [0xc06024], eax
mov dword [0xc06020], ecx
movzx eax, byte [0xc0fb28]
test al, al
je 0x416717
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.004550f0
lea eax, [0x72bf50]
mov dword [esp], eax
call fcn.004627c0
lea eax, [0x72be7c]
mov dword [esp], eax
call fcn.004627c0
call fcn.00419380
nop
lea eax, [0xc05fec]
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 [0xc2b570]
lea ebx, [0xc2c3e0]
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.0041e540
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0xc2bba0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.00419970
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4167cb
mov byte [esp], 0
call fcn.00445100
lea eax, [0xc2b56c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402250
mov eax, dword [0xc2b56c]
cmp eax, 1
jne 0x4167f3
mov eax, 1
jmp 0x4167f9
cmp eax, 2
sete al
mov byte [0xc2b964], al
test al, al
je 0x41680a
mov eax, 1
jmp 0x416811
movzx eax, byte [0xc2b965]
mov byte [0xc2b960], al
nop
mov dword [0xc05f78], 0xffffffff
mov dword [0xc05f84], 0xffffffff
call fcn.0041a6f0
call fcn.0041e3f0
lea eax, [0xc2b564]
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, [0x4169f0]
mov dword [esp + 0x58], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x58]
mov dword [esp], ecx
call fcn.004627c0
lea eax, [0x8ff354]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449340
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 0x4168ef
movzx ecx, byte [eax + 0x65]
test cl, cl
je 0x4168e7
mov dword [eax + 8], 0xfffffade
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4168f5
mov eax, dword [esp + 0x28]
test eax, eax
jmp 0x4168f5
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416905
lea eax, [0x72be8c]
mov dword [esp], eax
call fcn.00462760
nop
lea eax, [0xc05fb8]
mov dword [esp], eax
mov byte [esp + 4], 0
mov dword [esp + 8], 0
call fcn.00449340
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.00438440
lea eax, [0x702e17]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00438d40
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.00438b40
lea eax, [0x701cfa]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00438d40
mov dword [esp + 4], 0
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.004389c0
lea eax, [0x7039af]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00438d40
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.004389c0
call fcn.00438660
call fcn.004384b0
lea eax, [0x708d60]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004367b0
nop
call fcn.004628d0
jmp fcn.00416370