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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x51a2f7
sub esp, 0x58
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 0xc], edx
call fcn.005185f0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x70], eax
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x6c], ecx
mov edx, dword [esp + 0x60]
mov ebx, dword [edx + 4]
movzx ebp, byte [edx]
mov esi, dword [edx + 8]
mov edi, dword [edx + 0xc]
mov ecx, dword [eax + 4]
mov dword [esp + 0x54], ecx
movzx ecx, byte [eax]
mov byte [esp + 0x1b], cl
mov ecx, dword [eax + 8]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], ecx
movzx ecx, byte [eax]
mov byte [esp + 0x1a], cl
mov ecx, dword [eax + 8]
mov dword [esp + 0x34], ecx
mov ecx, dword [eax + 0xc]
xchg ebp, ebx
mov byte [eax], bl
xchg ebp, ebx
mov dword [eax + 8], esi
mov dword [eax + 0xc], edi
mov ebp, dword [0x10fd360]
test ebp, ebp
jne 0x51a2e8
mov dword [eax + 4], ebx
movzx ebx, byte [esp + 0x1b]
mov byte [edx], bl
mov ebx, dword [esp + 0x3c]
mov dword [edx + 8], ebx
mov ebx, dword [esp + 0x38]
mov dword [edx + 0xc], ebx
mov ebx, dword [0x10fd360]
test ebx, ebx
jne 0x51a2d7
mov ebx, dword [esp + 0x54]
mov dword [edx + 4], ebx
movzx edx, byte [esp + 0x1a]
mov ebx, dword [esp + 0x70]
mov byte [ebx], dl
mov edx, dword [esp + 0x34]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x51a2c6
mov ecx, dword [esp + 0x50]
mov dword [ebx + 4], ecx
movzx ecx, byte [esp + 0x7c]
test cl, cl
je 0x51a17d
nop
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x78]
cmp ecx, edx
je 0x51a2bf
mov ebx, dword [edx + 0xc]
mov ebp, dword [edx + 4]
mov esi, dword [ecx + 8]
mov eax, ecx
mov ecx, dword [ecx + 4]
cmp esi, ebx
jg 0x51a235
mov edi, esi
cmp edi, esi
jge 0x51a22e
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x40], ebp
cmp ecx, ebp
je 0x51a0a7
mov dword [esp], ebp
mov dword [esp + 4], ecx
shl edi, 2
mov dword [esp + 8], edi
call fcn.004614f0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x78]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x51a21d
mov eax, dword [esp + 0x40]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x68]
movzx ecx, byte [eax]
mov byte [edx], cl
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
call fcn.00517fa0
mov eax, dword [esp + 0x68]
mov dword [esp], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
call fcn.00517d60
nop
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
cmp eax, ecx
je 0x51a17d
mov edx, dword [eax + 0xc]
mov ebx, dword [eax + 4]
mov ebp, dword [ecx + 8]
mov esi, dword [ecx + 4]
cmp ebp, edx
jg 0x51a193
mov edi, ebp
cmp edi, ebp
jge 0x51a18f
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x44], ebx
cmp esi, ebx
je 0x51a151
mov dword [esp], ebx
mov dword [esp + 4], esi
shl edi, 2
mov dword [esp + 8], edi
call fcn.004614f0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x64]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x28]
mov dword [edx + 0xc], ecx
mov ecx, dword [0x10fd360]
test ecx, ecx
jne 0x51a181
mov eax, dword [esp + 0x44]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x78]
movzx eax, byte [eax]
mov byte [edx], al
add esp, 0x58
ret
lea edi, [edx + 4]
mov eax, dword [esp + 0x44]
call fcn.00460b40
jmp 0x51a174
mov edi, ebp
jmp 0x51a12e
mov dword [esp + 0x30], ebp
mov dword [esp + 0x4c], esi
cmp ebp, 1
jne 0x51a1e1
lea eax, [0xaa8ee0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00446f30
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
mov ebp, 1
mov edx, 1
jmp 0x51a12a
lea eax, [0xaa8ee0]
mov dword [esp], eax
mov dword [esp + 4], ebp
lea eax, [ebp + 4]
mov dword [esp + 0x28], eax
mov dword [esp + 8], eax
call fcn.00446f30
mov ebx, dword [esp + 0xc]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x78]
mov esi, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
mov ebp, edi
mov edx, dword [esp + 0x28]
jmp 0x51a12a
lea edi, [edx + 4]
mov eax, dword [esp + 0x40]
call fcn.00460b40
jmp 0x51a0ce
mov edi, esi
jmp 0x51a084
mov dword [esp + 0x2c], esi
mov dword [esp + 0x48], ecx
cmp esi, 1
jne 0x51a283
lea eax, [0xaa8ee0]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.00446f30
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x2c]
mov esi, 1
mov ebx, 1
jmp 0x51a07c
lea eax, [0xaa8ee0]
mov dword [esp], eax
mov dword [esp + 4], esi
lea ecx, [esi + 4]
mov dword [esp + 0x24], ecx
mov dword [esp + 8], ecx
call fcn.00446f30
mov ebp, dword [esp + 0xc]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x78]
mov edi, dword [esp + 0x2c]
mov esi, edi
mov ebx, dword [esp + 0x24]
jmp 0x51a07c
mov eax, ecx
jmp 0x51a0d7
lea edi, [ebx + 4]
mov eax, dword [esp + 0x50]
call fcn.00460b40
jmp 0x51a046
lea edi, [edx + 4]
mov eax, dword [esp + 0x54]
call fcn.00460b40
jmp 0x51a01c
lea edi, [eax + 4]
mov eax, ebx
call fcn.00460b40
jmp 0x519ff2
call fcn.0045f5f0
jmp fcn.00519f40