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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x518c2c
sub esp, 0x64
xor ebx, ebx
xor ebx, ebx
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp], ebx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebx, 0x5f5aba
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.0051e920
mov ebp, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
cmp eax, 0
jge 0x518bdb
mov dword [esp], ebp
mov dword [esp + 4], edx
call fcn.00518c40
mov ebx, dword [esp + 8]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], eax
cmp eax, 0
je 0x51892c
mov dword [esp + 0x70], 0
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
add esp, 0x64
ret
mov ebx, dword [esp + 0x24]
cmp ebx, 0
jge 0x51894e
mov dword [esp + 0x70], 0
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
add esp, 0x64
ret
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x6c]
cmp eax, ebx
ja 0x518bd4
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x44], ecx
mov dword [esp], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 4], eax
mov ebx, 0x5f5ab4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.0051e860
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
movzx ebx, byte [esp + 0x10]
cmp bl, 0
jne 0x518a55
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], 4
call fcn.00516cf0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edx
cmp edx, 0
je 0x5189e7
mov dword [esp + 0x70], 0
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
add esp, 0x64
ret
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ecx
mov dword [esp + 0x30], ecx
mov dword [esp], 0x5d8140
call fcn.0040ea00
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ebp, dword [esp + 0x30]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x2c]
cmp byte [0x6d9e38], 0
jne 0x518a43
mov dword [eax], ebp
xor ebp, ebp
mov dword [eax + 8], ebp
mov dword [eax + 0xc], ebp
xor ecx, ecx
mov byte [eax + 0x10], cl
mov dword [esp + 0x70], eax
xor ebx, ebx
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebx
add esp, 0x64
ret
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.0040f3d0
mov eax, dword [esp + 0x28]
jmp 0x518a21
mov dword [esp], ecx
mov dword [esp + 4], edx
mov ebx, 0x5f5ab4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
mov byte [esp + 0x10], 1
call fcn.00517b70
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp], ecx
mov dword [esp + 0x40], eax
mov dword [esp + 4], eax
mov dword [esp + 8], 4
call fcn.00516cf0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], eax
cmp eax, 0
je 0x518ae9
mov dword [esp + 0x70], 0
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
add esp, 0x64
ret
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 4], ebx
mov dword [esp + 8], 4
call fcn.00516cf0
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x80], ebx
mov dword [esp + 0x7c], edx
cmp edx, 0
je 0x518b3b
mov dword [esp + 0x70], 0
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
add esp, 0x64
ret
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x38], ebx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x58], eax
mov dword [esp], 0x5d8140
call fcn.0040ea00
mov eax, dword [esp + 4]
mov dword [esp + 0x28], eax
mov ebp, dword [esp + 0x38]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x34]
cmp byte [0x6d9e38], 0
jne 0x518bc2
mov dword [eax], ebp
mov ebp, dword [esp + 0x58]
mov dword [eax + 0xc], ebp
mov ebp, dword [esp + 0x54]
cmp byte [0x6d9e38], 0
jne 0x518bad
mov dword [eax + 8], ebp
mov ecx, 1
mov byte [eax + 0x10], cl
mov dword [esp + 0x70], eax
jmp 0x518a32
lea esi, [eax + 8]
mov dword [esp], esi
mov dword [esp + 4], ebp
call fcn.0040f3d0
mov eax, dword [esp + 0x28]
jmp 0x518b9c
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.0040f3d0
mov eax, dword [esp + 0x28]
jmp 0x518b85
call fcn.004288f0
ud2
mov ecx, eax
inc ecx
cmp ecx, edx
ja 0x518c25
sub edx, ecx
mov eax, ebp
cmp edx, 0
je 0x518bed
add eax, ecx
mov dword [esp + 0x5c], eax
mov dword [esp], eax
mov dword [esp + 0x60], edx
mov dword [esp + 4], edx
call fcn.00518c40
mov ebx, dword [esp + 8]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x78], ebx
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x80], ebx
jmp 0x51890d
call fcn.004288f0
ud2
call fcn.00450fb0
jmp fcn.00518870