Function at 0x519560
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 0x519b1e
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, 0x5f6743
mov dword [esp + 0x4c], ebx
mov eax, 1
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
cmp esi, eax
jl 0x519b10
cmp eax, esi
ja 0x519b17
cmp eax, eax
jne 0x519b10
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.004535f0
movzx ebx, byte [esp + 0x10]
cmp bl, 0
je 0x519b10
mov eax, 1
cmp al, 0
je 0x519a77
mov ebx, dword [esp + 0xac]
mov dword [esp], ebx
mov ebx, dword [esp + 0xb0]
mov dword [esp + 4], ebx
mov ebx, 0x5f674a
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
call fcn.0051f240
mov eax, dword [esp + 0x10]
cmp eax, 0
jge 0x5196db
mov ebx, 0x5fa9c2
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], 0x5cd320
call fcn.0040f320
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 [0x6dae38], 0
jne 0x5196c9
mov dword [eax], ebp
mov edx, 0x6b19b0
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.0040fcf0
mov eax, dword [esp + 0x30]
jmp 0x51969f
mov ecx, eax
mov dword [esp + 0x28], eax
inc ecx
mov eax, dword [esp + 0xb0]
cmp ecx, eax
ja 0x519b09
mov edx, eax
sub edx, ecx
mov eax, dword [esp + 0xac]
cmp edx, 0
je 0x519703
add eax, ecx
mov dword [esp + 0x7c], eax
mov dword [esp], eax
mov dword [esp + 0x80], edx
mov dword [esp + 4], edx
call fcn.00519e60
movzx ebx, byte [esp + 8]
cmp bl, 0
jne 0x5197fb
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], 0x5c4e00
lea ebx, [esp + 0x8c]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0
call fcn.0040c410
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, 0x5fd1c6
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.0050c420
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 0x519b02
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, 0x5f6825
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 3
call fcn.00520ed0
mov eax, dword [esp + 0x10]
cmp eax, 0
jl 0x519a77
mov dword [esp + 0x24], eax
mov ebx, dword [esp + 0xb0]
cmp eax, ebx
ja 0x519a70
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.00517610
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 0x5198d3
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 0x519a69
cmp ecx, eax
ja 0x519a69
mov edx, eax
sub edx, ecx
mov eax, dword [esp + 0xac]
cmp edx, 0
je 0x519904
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.00517610
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 0x519970
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 0x519a62
mov edx, ecx
sub edx, eax
mov ecx, dword [esp + 0xac]
cmp edx, 0
je 0x519995
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.00517610
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 0x5199f9
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.004408b0
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.00429210
ud2
call fcn.00429210
ud2
call fcn.00429210
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.00517610
mov ebp, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
cmp eax, 0
je 0x519add
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.00429210
ud2
call fcn.00429210
ud2
xor eax, eax
jmp 0x519619
call fcn.00429210
ud2
call fcn.004518d0
jmp fcn.00519560