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

Disassembly:
mov ecx, dword [0x587cec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x41941f
sub esp, 0x84
call fcn.0044f160
mov eax, dword [esp]
mov ecx, dword [0x587cec]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x418f39
cmp dword [eax + 0x7c], 1
jg 0x418f39
mov eax, dword [eax + 0x78]
test eax, eax
jne 0x418f39
call fcn.0044f180
jmp 0x418f45
call fcn.0044f180
add esp, 0x84
ret
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x90]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
call fcn.00418d80
movzx eax, byte [esp + 0x10]
test al, al
jne 0x418f82
xor eax, eax
jmp 0x418f8e
call fcn.00427050
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x418f45
lea eax, [0x5687f8]
mov dword [esp], eax
call fcn.0044f770
mov eax, dword [esp + 0x88]
mov dword [esp], eax
mov ecx, dword [esp + 0x8c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x90]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x94]
mov dword [esp + 0xc], ebx
call fcn.00418d80
movzx eax, byte [esp + 0x10]
test al, al
je 0x419092
mov eax, dword [0x588020]
cmp eax, 1
jne 0x418fef
mov eax, 1
jmp 0x418ffd
cmp eax, 2
jne 0x418ffb
mov eax, 2
jmp 0x418ffd
xor eax, eax
mov dword [esp + 0x44], eax
lea ecx, [0x560290]
mov dword [esp], ecx
call fcn.0044f770
lea eax, [0x56028c]
mov dword [esp], eax
call fcn.0044f770
mov eax, dword [esp + 0x88]
cmp eax, 2
sete cl
mov byte [0x568808], cl
call fcn.00461f90
mov eax, dword [esp]
mov dword [esp + 0x6c], eax
mov ecx, dword [esp + 4]
mov dword [esp + 0x5c], ecx
call fcn.00462100
movzx eax, byte [esp + 8]
test al, al
je 0x41907a
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x5c]
mov dword [esp + 4], ecx
call fcn.004624e0
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00462110
mov eax, dword [0x568268]
mov dword [esp + 0x68], eax
mov ecx, dword [0x56826c]
mov dword [esp + 0x58], ecx
xor edx, edx
jmp 0x4190b6
lea eax, [0x5687f8]
mov dword [esp], eax
call fcn.0044faa0
add esp, 0x84
ret
mov ebx, dword [esp + 0x54]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x58]
cmp edx, ecx
jge 0x4190eb
mov dword [esp + 0x54], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x60], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.004795c0
mov eax, dword [esp + 4]
mov ecx, dword [0x56fcd0]
cmp ecx, eax
je 0x4190a7
jmp 0x41936a
call fcn.0041ab10
lea eax, [0x4e2230]
mov dword [esp], eax
call fcn.004735b0
mov eax, dword [0x587ca8]
mov dword [0x56882c], eax
mov dword [0x568830], eax
mov ecx, dword [0x587cac]
cmp ecx, eax
jge 0x419120
mov dword [0x56882c], ecx
lea eax, [0x5885e8]
mov dword [esp], eax
call fcn.004796d0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [0x56885c], eax
mov dword [0x568860], ecx
mov dword [0x568854], 0
mov dword [0x568858], 0
mov eax, dword [esp + 0x44]
mov dword [0x568804], eax
call fcn.004721c0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [0x568834], eax
mov dword [0x568838], ecx
lea edi, [esp + 0x20]
xor eax, eax
call fcn.00474cd9
lea eax, [0x4194f0]
mov dword [esp + 0x7c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x80], eax
lea ecx, [esp + 0x7c]
mov dword [esp], ecx
call fcn.004735b0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
lea edx, [0x568874]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 1
call fcn.00435ac0
lea eax, [0x4e2238]
mov dword [esp], eax
call fcn.004735b0
call fcn.0041bb40
lea eax, [0x568828]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004796a0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [0x587ca8]
lea ebx, [0x588580]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x88]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x1c], eax
call fcn.00420f90
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea edx, [0x587fa0]
mov dword [esp], edx
mov byte [esp + 4], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.0041c0b0
mov eax, dword [esp + 0x44]
test eax, eax
je 0x419283
mov byte [esp], 0
call fcn.0044ae00
mov dword [esp], 1
call fcn.00418c20
call fcn.0041ac50
call fcn.0041cfd0
call fcn.00420e40
lea eax, [0x587c28]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.00479c80
call fcn.0044f160
mov eax, dword [esp]
mov dword [esp + 0x64], eax
call fcn.004721c0
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
mov ebp, dword [0x568830]
lea esi, [0x568874]
mov dword [esp], esi
sub eax, edx
mov dword [esp + 4], eax
sbb ecx, ebx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
call fcn.00435ac0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
lea eax, [0x419430]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x74], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x78], eax
lea eax, [esp + 0x70]
mov dword [esp], eax
call fcn.004735b0
lea eax, [0x56028c]
mov dword [esp], eax
call fcn.0044faa0
mov eax, dword [esp + 0x64]
mov dword [esp], eax
call fcn.0044f180
mov eax, dword [esp + 0x44]
test eax, eax
je 0x419355
call fcn.0043e520
lea eax, [0x5687f8]
mov dword [esp], eax
call fcn.0044faa0
add esp, 0x84
ret
mov dword [esp + 0x48], eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x60]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
call fcn.0043d390
lea eax, [0x4d7e66]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.0043dbf0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
sar eax, 0x1f
mov dword [esp + 4], eax
call fcn.0043da10
lea eax, [0x4d7aba]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.0043dbf0
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0043d8e0
lea eax, [0x4d8603]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.0043dbf0
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], 0
call fcn.0043d8e0
call fcn.0043d590
call fcn.0043d3f0
lea eax, [0x4da445]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0046f470
nop
call fcn.004736a0
jmp fcn.00418ef0