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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x28]
cmp eax, dword [ecx + 8]
jbe 0x5191fe
sub esp, 0xa8
xor ebx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
xor ebx, ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
mov edi, dword [esp + 0xac]
mov dword [esp + 0x44], edi
mov esi, dword [esp + 0xb0]
mov ebx, 0x5f5ac3
mov dword [esp + 0x4c], ebx
mov eax, 1
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
cmp esi, eax
jl 0x5191f0
cmp eax, esi
ja 0x5191f7
cmp eax, eax
jne 0x5191f0
mov dword [esp + 0x94], edi
mov dword [esp], edi
mov dword [esp + 0x98], eax
mov dword [esp + 4], eax
mov ebp, dword [esp + 0x4c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], eax
call fcn.00452cd0
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x5191f0
mov eax, 1
cmp al, 0
je 0x519157
mov ebx, dword [esp + 0xac]
mov dword [esp], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 4], ebx
mov ebx, 0x5f5aca
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.0051e920
mov eax, dword [esp + 0x10]
cmp eax, 0
jge 0x518dbb
mov ebx, 0x5f9d42
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], 0x13
xor ebx, ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp], 0x5cc760
call fcn.0040ea00
mov eax, dword [esp + 4]
mov dword [esp + 0x30], eax
mov ebp, dword [esp + 0x40]
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x3c]
cmp byte [0x6d9e38], 0
jne 0x518da9
mov dword [eax], ebp
mov edx, 0x6b09b0
xor ebx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], eax
add esp, 0xa8
ret
mov dword [esp], eax
mov dword [esp + 4], ebp
call fcn.0040f3d0
mov eax, dword [esp + 0x30]
jmp 0x518d7f
mov ecx, eax
mov dword [esp + 0x28], eax
inc ecx
mov eax, dword [esp + 0xb0]
cmp ecx, eax
ja 0x5191e9
mov edx, eax
sub edx, ecx
mov eax, dword [esp + 0xac]
cmp edx, 0
je 0x518de3
add eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp], eax
mov dword [esp + 0x80], edx
mov dword [esp + 4], edx
call fcn.00519540
movzx ebx, byte [esp + 8]
cmp bl, 0
jne 0x518edb
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x8c], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x90], ebx
xor ebx, ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], ebx
lea ebx, [esp + 0x84]
mov dword [esp + 0x2c], ebx
mov dword [esp], 0x5c4240
lea ebx, [esp + 0x8c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.0040baf0
mov ebx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov edx, 1
mov ecx, 1
mov eax, ebx
mov ebx, 0x5fc542
mov dword [esp], ebx
mov dword [esp + 4], 0x1a
mov dword [esp + 0x9c], eax
mov dword [esp + 8], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0xa4], ecx
mov dword [esp + 0x10], ecx
call fcn.0050bb00
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
xor ebx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xa8
ret
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xb0]
cmp eax, ebx
ja 0x5191e2
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x94], ecx
mov dword [esp], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 4], eax
mov ebx, 0x5f5ba5
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
call fcn.005205b0
mov eax, dword [esp + 0x10]
cmp eax, 0
jl 0x519157
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0xb0]
cmp eax, ebx
ja 0x519150
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x94], ecx
mov dword [esp], ecx
mov dword [esp + 0x98], eax
mov dword [esp + 4], eax
mov dword [esp + 8], 2
call fcn.00516cf0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x68], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
cmp eax, 0
je 0x518fb3
xor ebx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xa8
ret
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
mov ebx, dword [esp + 0xb0]
cmp eax, ebx
ja 0x519149
cmp ecx, eax
ja 0x519149
mov edx, eax
sub edx, ecx
mov eax, dword [esp + 0xac]
cmp edx, 0
je 0x518fe4
add eax, ecx
mov dword [esp + 0x94], eax
mov dword [esp], eax
mov dword [esp + 0x98], edx
mov dword [esp + 4], edx
mov dword [esp + 8], 3
call fcn.00516cf0
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x60], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x78], ecx
mov dword [esp + 0x74], eax
cmp eax, 0
je 0x519050
xor ebx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xa8
ret
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xb0]
cmp eax, ecx
ja 0x519142
mov edx, ecx
sub edx, eax
mov ecx, dword [esp + 0xac]
cmp edx, 0
je 0x519075
add ecx, eax
mov dword [esp + 0x94], ecx
mov dword [esp], ecx
mov dword [esp + 0x98], edx
mov dword [esp + 4], edx
mov dword [esp + 8], 2
call fcn.00516cf0
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], eax
cmp eax, 0
je 0x5190d9
xor ebx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ebp
add esp, 0xa8
ret
mov dword [esp], 0
mov ebx, dword [esp + 0x64]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x68]
mov dword [esp + 8], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x54], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x18], ecx
call fcn.0043ff90
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0xb4], ebx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xb8], ebx
xor ebx, ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
add esp, 0xa8
ret
call fcn.004288f0
ud2
call fcn.004288f0
ud2
call fcn.004288f0
ud2
xor ebx, ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 4], ebx
mov dword [esp + 8], 2
call fcn.00516cf0
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, 0
je 0x5191bd
xor ebx, ebx
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], ecx
add esp, 0xa8
ret
mov dword [esp + 0xb4], ebp
mov dword [esp + 0xb8], edx
xor ebx, ebx
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebx
add esp, 0xa8
ret
call fcn.004288f0
ud2
call fcn.004288f0
ud2
xor eax, eax
jmp 0x518cf9
call fcn.004288f0
ud2
call fcn.00450fb0
jmp fcn.00518c40