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 [0x5df47c]
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, [0x5df858]
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 [0x6053f8]
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, [0x5a1230]
mov dword [esp], ebx
call fcn.0044b1a0
lea eax, [0x5a1250]
mov dword [esp], eax
call fcn.0044b1a0
movzx eax, byte [esp + 0x23]
mov byte [0x5df86c], al
movzx eax, byte [0x5e9648]
test al, al
je 0x41864e
call fcn.004581f0
mov eax, dword [0x5df2d0]
mov dword [esp + 0x4c], eax
mov ecx, dword [0x5df2d4]
mov dword [esp + 0x38], ecx
xor edx, edx
jmp 0x418687
lea eax, [0x5df858]
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 [0x5e5098]
cmp ecx, eax
je 0x418678
jmp 0x4188cb
call fcn.0041a030
lea eax, [0x510754]
mov dword [esp], eax
call fcn.00463d60
mov eax, dword [0x605048]
mov dword [0x5df890], eax
mov dword [0x5df894], eax
mov ecx, dword [0x605064]
cmp ecx, eax
jge 0x4186f1
mov dword [0x5df890], ecx
lea eax, [0x6059f0]
mov dword [esp], eax
call fcn.004023d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x5df8cc], eax
mov dword [0x5df8c8], ecx
mov dword [0x5df8b8], 0
mov dword [0x5df8bc], 0
mov eax, dword [esp + 0x24]
mov dword [0x5df868], eax
call fcn.00456ef0
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ecx
mov dword [0x5df89c], eax
mov dword [0x5df898], ecx
mov dword [0x5df8c4], eax
mov dword [0x5df8c0], ecx
movzx eax, byte [0x5e9648]
test al, al
je 0x418774
mov dword [esp], 1
call fcn.004582d0
lea eax, [0x510824]
mov dword [esp], eax
call fcn.00463d60
lea eax, [0x510758]
mov dword [esp], eax
call fcn.00463d60
call fcn.0041af90
lea eax, [0x5df88c]
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 [0x605048]
lea ebx, [0x6059a0]
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, [0x605440]
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, [0x60503c]
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.00463d60
lea eax, [0x5a1250]
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, [0x5df858]
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, [0x505769]
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, [0x508265]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.00438c50
nop
call fcn.00463e70
jmp fcn.00418510