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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x418bfa
sub esp, 0x48
call fcn.00447e60
mov eax, dword [esp]
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x418816
cmp dword [eax + 0x78], 1
jg 0x418816
mov eax, dword [eax + 0x74]
test eax, eax
jne 0x418816
call fcn.00447e80
jmp 0x418825
call fcn.00447e80
add esp, 0x48
ret
inc dword [0x6efffc]
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov ebx, dword [esp + 0x58]
mov dword [esp + 0xc], ebx
call fcn.00418670
movzx eax, byte [esp + 0x10]
test al, al
jne 0x418856
xor eax, eax
jmp 0x418862
call fcn.00424bc0
cmp dword [esp], 0xffffffff
setne al
test al, al
jne 0x41881f
lea eax, [0x6f0358]
mov dword [esp], eax
call fcn.004495b0
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0xc], ecx
call fcn.00418670
movzx eax, byte [esp + 0x10]
test al, al
je 0x418919
mov eax, dword [esp + 0x4c]
cmp eax, 2
sete al
mov byte [0x6f036c], al
mov eax, dword [0x717db8]
cmp eax, 1
jne 0x4188c3
mov eax, 1
jmp 0x4188d1
cmp eax, 2
jne 0x4188cf
mov eax, 2
jmp 0x4188d1
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [0x6bc308]
mov dword [esp], ecx
call fcn.004495b0
lea eax, [0x6bc328]
mov dword [esp], eax
call fcn.004495b0
movzx eax, byte [0x6fbf88]
test al, al
je 0x418901
call fcn.00458200
mov eax, dword [0x6efbf8]
mov dword [esp + 0x3c], eax
mov ecx, dword [0x6efbfc]
mov dword [esp + 0x28], ecx
xor edx, edx
jmp 0x41893a
lea eax, [0x6f0358]
mov dword [esp], eax
call fcn.004498d0
add esp, 0x48
ret
mov ebx, dword [esp + 0x24]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jge 0x41896f
mov dword [esp + 0x24], edx
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x34], ecx
mov ebx, dword [ecx + 0x30]
test byte [ebx], al
add ebx, 0x24c
mov dword [esp], ebx
call fcn.00402190
mov eax, dword [esp + 4]
mov ecx, dword [0x6f79d0]
cmp ecx, eax
je 0x41892b
jmp 0x418b43
call fcn.0041a330
lea eax, [0x5e5c6c]
mov dword [esp], eax
call fcn.00462d60
mov eax, dword [0x7179a8]
mov dword [0x6f0398], eax
mov dword [0x6f039c], eax
mov ecx, dword [0x7179c4]
cmp ecx, eax
jge 0x4189a4
mov dword [0x6f0398], ecx
lea eax, [0x718530]
mov dword [esp], eax
call fcn.004023d0
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
mov dword [0x6f03d4], eax
mov dword [0x6f03d0], ecx
mov dword [0x6f03c0], 0
mov dword [0x6f03c4], 0
mov eax, dword [esp + 0x14]
mov dword [0x6f0368], eax
call fcn.00457100
mov eax, dword [esp + 4]
mov ecx, dword [esp]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
mov dword [0x6f03a4], eax
mov dword [0x6f03a0], ecx
mov dword [0x6f03cc], eax
mov dword [0x6f03c8], ecx
movzx eax, byte [0x6fbf88]
test al, al
je 0x418a27
mov dword [esp], 1
call fcn.004582e0
lea eax, [0x5e5d3c]
mov dword [esp], eax
call fcn.00462d60
lea eax, [0x5e5c70]
mov dword [esp], eax
call fcn.00462d60
call fcn.0041b2e0
inc dword [0x6f0394]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [0x7179a8]
lea ebx, [0x7184c0]
mov dword [esp], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
call fcn.0041f4a0
mov eax, dword [0x718520]
mov ecx, dword [0x718524]
mov dword [0x6f03e8], eax
mov dword [0x6f03ec], ecx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418a9f
mov byte [esp], 0
call fcn.00445510
mov dword [esp], 1
call fcn.00418490
call fcn.0041a3a0
call fcn.0041b800
call fcn.0041f360
lea eax, [0x71799c]
mov dword [esp], eax
mov dword [esp + 4], 1
call fcn.004023a0
call fcn.00447e60
mov eax, dword [esp]
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
lea ecx, [0x418c10]
mov dword [esp + 0x40], ecx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x40]
mov dword [esp], ecx
call fcn.00462d60
lea eax, [0x6bc328]
mov dword [esp], eax
call fcn.004498d0
mov eax, dword [esp + 0x38]
mov dword [esp], eax
call fcn.00447e80
mov eax, dword [esp + 0x14]
test eax, eax
je 0x418b31
call fcn.0043a0c0
lea eax, [0x6f0358]
mov dword [esp], eax
call fcn.004498d0
add esp, 0x48
ret
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
call fcn.00438cf0
lea eax, [0x5d0f4c]
mov dword [esp], eax
mov dword [esp + 4], 0xb
call fcn.00439880
mov eax, dword [esp + 0x1c]
mov ecx, eax
sar eax, 0x1f
mov dword [esp + 4], eax
mov dword [esp], ecx
call fcn.004396c0
lea eax, [0x5d0285]
mov dword [esp], eax
mov dword [esp + 4], 0xa
call fcn.00439880
mov dword [esp + 4], 0
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00439570
lea eax, [0x5d1805]
mov dword [esp], eax
mov dword [esp + 4], 0xd
call fcn.00439880
mov dword [esp + 4], 0
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00439570
call fcn.00438ee0
call fcn.00438d50
lea eax, [0x5d56b0]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.004376f0
nop
call fcn.00462e70
jmp fcn.004187d0