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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418982
sub esp, 0x58
call fcn.00449910
mov eax, dword [esp]
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x418556
cmp dword [eax + 0x7c], 1
jg 0x418556
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x418556
call fcn.00449930
jmp 0x418565
call fcn.00449930
add esp, 0x58
ret
inc dword [0x5e573c]
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], ebx
call fcn.00418390
movzx eax, byte [esp + 0x10]
test al, al
jne 0x418596
xor eax, eax
jmp 0x4185a2
call fcn.00425800
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x41855f
lea eax, [0x5e5b18]
mov dword [esp], eax
call fcn.0044b1a0
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x60]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x68]
mov dword [esp + 0xc], ebx
call fcn.00418390
movzx eax, byte [esp + 0x10]
test al, al
je 0x418666
mov eax, dword [0x60b6b8]
cmp eax, 1
jne 0x4185f7
mov eax, 1
jmp 0x418605
cmp eax, 2
jne 0x418603
mov eax, 2
jmp 0x418605
xor eax, eax
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x5c]
cmp ecx, 2
sete dl
mov byte [esp + 0x23], dl
lea ebx, [0x5a2230]
mov dword [esp], ebx
call fcn.0044b1a0
lea eax, [0x5a2250]
mov dword [esp], eax
call fcn.0044b1a0
movzx eax, byte [esp + 0x23]
mov byte [0x5e5b2c], al
movzx eax, byte [0x5ef908]
test al, al
je 0x41864e
call fcn.00458290
mov eax, dword [0x5e5590]
mov dword [esp + 0x4c], eax
mov ecx, dword [0x5e5594]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x418687
lea eax, [0x5e5b18]
mov dword [esp], eax
call fcn.0044b4d0
add esp, 0x58
ret
mov ebx, dword [esp + 0x34]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
cmp edx, ecx
jge 0x4186bc
mov dword [esp + 0x34], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x44], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.004022c0
mov eax, dword [esp + 4]
mov ecx, dword [0x5eb358]
cmp ecx, eax
je 0x418678
jmp 0x4188cb
call fcn.0041a030
lea eax, [0x510704]
mov dword [esp], eax
call fcn.00463f60
mov eax, dword [0x60b308]
mov dword [0x5e5b50], eax
mov dword [0x5e5b54], eax
mov ecx, dword [0x60b324]
cmp ecx, eax
jge 0x4186f1
mov dword [0x5e5b50], ecx
lea eax, [0x60bcb0]
mov dword [esp], eax
call fcn.004023d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5e5b8c], eax
mov dword [0x5e5b88], ecx
mov dword [0x5e5b78], 0
mov dword [0x5e5b7c], 0
mov eax, dword [esp + 0x24]
mov dword [0x5e5b28], eax
call fcn.00456f90
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0x5e5b5c], eax
mov dword [0x5e5b58], ecx
mov dword [0x5e5b84], eax
mov dword [0x5e5b80], ecx
movzx eax, byte [0x5ef908]
test al, al
je 0x418774
mov dword [esp], 1
call fcn.00458370
lea eax, [0x5107dc]
mov dword [esp], eax
call fcn.00463f60
lea eax, [0x510708]
mov dword [esp], eax
call fcn.00463f60
call fcn.0041af90
lea eax, [0x5e5b4c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004023a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0x60b308]
lea ebx, [0x60bc60]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x1c], eax
call fcn.004201a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0x60b700]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
call fcn.0041b4c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x418827
mov byte [esp], 0
call fcn.00446dd0
mov dword [esp], 1
call fcn.00418210
call fcn.0041a0a0
call fcn.0041c410
call fcn.00420050
lea eax, [0x60b2fc]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00402920
call fcn.00449910
mov eax, dword [esp]
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
lea ecx, [0x418990]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], ecx
lea ecx, [esp + 0x50]
mov dword [esp], ecx
call fcn.00463f60
lea eax, [0x5a2250]
mov dword [esp], eax
call fcn.0044b4d0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call fcn.00449930
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4188b9
call fcn.0043b390
lea eax, [0x5e5b18]
mov dword [esp], eax
call fcn.0044b4d0
add esp, 0x58
ret
mov dword [esp + 0x28], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x44]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
call fcn.0043a340
lea eax, [0x5051a3]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0043ab80
mov eax, dword [esp + 0x2c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.0043a9c0
lea eax, [0x5049a2]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0043ab80
mov dword [esp + 4], 0
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0043a870
lea eax, [0x505775]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0043ab80
mov dword [esp + 4], 0
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.0043a870
call fcn.0043a530
call fcn.0043a3a0
lea eax, [0x50824c]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00438c50
nop
call fcn.00464070
jmp fcn.00418510