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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x518d1e
sub esp, 0x7c
lea edi, [esp + 0x84]
xor eax, eax
call fcn.0045f313
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x44], ebx
lea ebp, [0x52c840]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00408c90
mov ecx, dword [esp + 8]
mov dword [esp], ecx
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x80]
lea edx, [ecx + 0x4c]
mov dword [esp + 0x64], edx
mov dword [esp + 8], edx
mov dword [esp + 0xc], 0xa
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 0xa
call fcn.00466060
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test ecx, ecx
jne 0x518d0c
mov ecx, dword [esp + 0x80]
cmp byte [ecx + 0x4c], 0x1f
jne 0x518775
cmp byte [ecx + 0x4d], 0x8b
jne 0x518775
cmp byte [ecx + 0x4e], 8
je 0x518793
mov eax, dword [0x619a20]
mov ecx, dword [0x619a24]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x7c
ret
movzx edx, byte [ecx + 0x4f]
mov byte [esp + 0x27], dl
mov ebx, dword [ecx + 0x50]
test ebx, ebx
je 0x5187ea
add ebx, 0x7791f700
lea edi, [esp + 0x68]
mov eax, 0
call fcn.0045f31b
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], ebx
adc eax, 0xe
mov dword [esp + 0x74], eax
mov ecx, dword [0x615828]
mov dword [esp + 0x78], ecx
lea edi, [esp + 0x98]
lea esi, [esp + 0x68]
call fcn.0045f7fe
mov ecx, dword [esp + 0x80]
movzx eax, byte [ecx + 0x55]
mov byte [esp + 0xb4], al
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov dword [esp + 4], 0xa
mov dword [esp + 8], 0x200
call fcn.00517e00
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x80]
mov dword [ecx + 0x44], eax
movzx eax, byte [esp + 0x27]
test al, 4
je 0x518a6a
mov eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x40], edx
lea ebx, [0x52c840]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408c90
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 2
call fcn.00466060
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x5188e8
mov ebp, dword [0x619b5c]
cmp dword [0x619b58], edx
jne 0x5188d6
mov dword [esp + 0x50], ecx
mov dword [esp + 0x30], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.004031f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5188ce
mov eax, dword [0x619b80]
mov ecx, dword [0x619b84]
jmp 0x5188d6
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x7c
ret
mov eax, dword [0x61956c]
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
call fcn.00517cf0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov dword [ecx + 0x44], eax
movzx eax, word [ecx + 0x4c]
mov dword [esp + 0x34], eax
lea edx, [0x52a9e0]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], eax
call fcn.00447600
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x34]
mov ebx, dword [ecx + 0x38]
mov dword [esp + 0x3c], ebx
lea ebp, [0x52c840]
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00408c90
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
call fcn.00466060
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x518a0a
mov ebp, dword [0x619b5c]
cmp dword [0x619b58], edx
jne 0x5189f8
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x2c], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.004031f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x5189f0
mov eax, dword [0x619b80]
mov ecx, dword [0x619b84]
jmp 0x5189f8
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x7c
ret
mov eax, dword [0x61956c]
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x44]
mov dword [esp], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edx
call fcn.00517cf0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x80]
mov dword [ecx + 0x44], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
movzx eax, byte [esp + 0x27]
test al, 8
je 0x518aad
mov dword [esp], ecx
call fcn.00518470
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
test eax, eax
jne 0x518cfa
mov dword [esp + 0xac], ebx
mov dword [esp + 0xb0], ebp
movzx eax, byte [esp + 0x27]
mov ecx, dword [esp + 0x80]
test al, 0x10
je 0x518af0
mov dword [esp], ecx
call fcn.00518470
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 4]
mov ebp, dword [esp + 8]
test eax, eax
jne 0x518ce8
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebp
movzx eax, byte [esp + 0x27]
mov ecx, dword [esp + 0x80]
test al, 2
je 0x518bcb
mov eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x38], edx
lea ebx, [0x52c840]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408c90
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 0x200
mov dword [esp + 0x14], 2
call fcn.00466060
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x518bb4
mov ebp, dword [0x619b5c]
cmp dword [0x619b58], edx
jne 0x518ba2
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], eax
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
call fcn.004031f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x518b9a
mov eax, dword [0x619b80]
mov ecx, dword [0x619b84]
jmp 0x518ba2
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x7c
ret
nop
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x44]
cmp word [eax + 0x4c], cx
jne 0x518cca
mov ecx, eax
mov dword [ecx + 0x44], 0
mov eax, dword [ecx + 0x3c]
mov edx, dword [ecx + 0x40]
test eax, eax
je 0x518c57
mov dword [esp + 0x5c], edx
lea ecx, [0x52c600]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00408cf0
mov eax, dword [esp + 8]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 0x34]
mov ecx, dword [ecx + 0x38]
mov dword [esp + 0x54], ecx
lea ebx, [0x52c840]
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.00408c90
mov eax, dword [esp + 0x58]
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x5c]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call eax
jmp 0x518cb0
mov eax, dword [ecx + 0x34]
mov edx, dword [ecx + 0x38]
mov dword [esp + 0x5c], edx
lea ebx, [0x52c840]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.00408c90
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
call fcn.00517340
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x80]
mov dword [edx + 0x3c], ecx
mov ecx, dword [0x640ab0]
test ecx, ecx
jne 0x518ca8
mov dword [edx + 0x40], eax
jmp 0x518cb0
lea edi, [edx + 0x40]
call fcn.0045f0c0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], 0
add esp, 0x7c
ret
mov eax, dword [0x619a20]
mov ecx, dword [0x619a24]
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], ecx
add esp, 0x7c
ret
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
add esp, 0x7c
ret
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], edx
add esp, 0x7c
ret
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ebx
add esp, 0x7c
ret
call fcn.0045dcf0
jmp fcn.005186c0