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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6aeef0
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x76f950]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0x14], edi
mov edx, dword [edi + 0x70]
test edx, edx
je 0x51832d
mov eax, dword [edi + 0xc8]
test eax, eax
jne 0x518009
cmp byte [edi + 0x1f0], al
jne 0x51832d
mov ecx, dword [edi + 0x19c]
mov ebx, dword [ebp + 0xc]
cmp ebx, ecx
je 0x518391
test eax, eax
jne 0x5182ed
lea ecx, [esp + 0x4c]
call fcn.004ede70
mov dword [esp + 0x98], 0
mov esi, dword [ebp + 8]
push esi
call fcn.004ee570
lea eax, [edi + 0x1d0]
push eax
lea ecx, [esp + 0x50]
mov dword [esp + 0x2c], eax
call fcn.004ee8c0
lea ecx, [esp + 0x6c]
call fcn.004ede70
mov byte [esp + 0x98], 1
mov eax, dword [ebp + 0x14]
cmp dword [edi + 0x70], eax
jne 0x51815d
cmp dword [ebp + 0x18], 0xff
jne 0x51815d
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x50]
call fcn.004edae0
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x518140
test ebx, ebx
jne 0x5180a3
mov ebx, eax
jmp 0x5180ae
mov ebx, dword [ebx + 0x14]
cmp ebx, eax
je 0x518140
movq xmm0, qword [ebx]
mov eax, dword [ebp + 0x10]
movq qword [esp + 0x2c], xmm0
mov edx, dword [eax]
mov ecx, dword [eax + 4]
movq xmm0, qword [ebx + 8]
sub edx, dword [esi]
mov edi, dword [esp + 0x2c]
sub ecx, dword [esi + 4]
mov esi, dword [esp + 0x30]
movq qword [esp + 0x34], xmm0
mov eax, dword [esp + 0x34]
sub eax, edi
add edx, edi
add eax, edx
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x38]
add ecx, esi
sub eax, esi
push 3
add eax, ecx
sub esp, 0x10
mov dword [esp + 0x5c], eax
mov eax, esp
push dword [ebp + 0xc]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x54], edx
movq xmm0, qword [esp + 0x54]
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x5c]
movq qword [eax + 8], xmm0
mov eax, dword [esp + 0x2c]
sub esi, dword [eax + 0x17c]
sub edi, dword [eax + 0x178]
mov ecx, dword [eax + 0x19c]
push esi
push edi
call fcn.00501430
mov esi, dword [ebp + 8]
jmp 0x51808f
push esi
lea ecx, [esp + 0x70]
call fcn.004ee570
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x70]
call fcn.004ee8c0
jmp 0x5181e8
cmp dword [esp + 0x54], 0
je 0x51816a
mov ebx, dword [esp + 0x4c]
jmp 0x51816c
xor ebx, ebx
xor esi, esi
mov edi, edi
test ebx, ebx
je 0x5181db
test esi, esi
jne 0x51817c
mov esi, ebx
jmp 0x518183
mov esi, dword [esi + 0x14]
cmp esi, ebx
je 0x5181db
movq xmm0, qword [esi]
mov eax, dword [edi + 0x178]
mov edx, dword [edi + 0x17c]
movq qword [esp + 0x18], xmm0
movq xmm0, qword [esi + 8]
mov ecx, dword [esp + 0x18]
neg eax
add ecx, eax
movq qword [esp + 0x20], xmm0
add dword [esp + 0x20], eax
mov eax, dword [esp + 0x1c]
neg edx
add dword [esp + 0x24], edx
add eax, edx
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push dword [edi + 0x19c]
mov dword [esp + 0x28], ecx
lea ecx, [edi - 4]
mov dword [esp + 0x2c], eax
call fcn.00517420
jmp 0x518170
mov esi, dword [ebp + 8]
push esi
lea ecx, [esp + 0x70]
call fcn.004ee570
cmp dword [esp + 0x74], 0
je 0x5181f5
mov eax, dword [esp + 0x6c]
jmp 0x5181f7
xor eax, eax
xor ebx, ebx
mov dword [esp + 0x18], eax
lea ecx, [ecx]
test eax, eax
je 0x5182a6
test ebx, ebx
jne 0x518210
mov ebx, eax
jmp 0x51821b
mov ebx, dword [ebx + 0x14]
cmp ebx, eax
je 0x5182a6
movq xmm0, qword [ebx]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x18]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
sub edx, dword [esi]
sub ecx, dword [esi + 4]
push dword [ebp + 0x14]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [ebx + 8]
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
movq qword [esp + 0x4c], xmm0
mov eax, dword [esp + 0x4c]
sub eax, edi
add edx, edi
add eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
add ecx, esi
sub eax, esi
add eax, ecx
mov dword [esp + 0x40], eax
lea eax, [esp + 0x34]
push eax
mov eax, dword [esp + 0x20]
push dword [ebp + 0xc]
sub esi, dword [eax + 0x17c]
sub edi, dword [eax + 0x178]
mov dword [esp + 0x3c], edx
mov edx, dword [eax + 0x70]
mov dword [esp + 0x40], ecx
mov ecx, dword [eax + 0x19c]
push esi
push edi
call fcn.00516e80
mov eax, dword [esp + 0x30]
mov esi, dword [ebp + 8]
add esp, 0x18
jmp 0x518200
mov ecx, dword [esp + 0x28]
push esi
call fcn.004ee570
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x6c]
call fcn.004edf50
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.004edf50
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push dword [ebp + 0x18]
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
mov eax, dword [esi + 4]
push dword [ebp + 0x10]
sub eax, dword [edi + 0x17c]
push ebx
push eax
mov eax, dword [esi]
sub eax, dword [edi + 0x178]
push eax
call fcn.00516e80
add esp, 0x18
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 8]
push dword [ebp + 0x18]
movq xmm0, qword [eax]
push dword [ebp + 0x14]
mov ecx, dword [edi + 0x78]
movq qword [esp + 0x20], xmm0
movq xmm0, qword [eax + 8]
mov eax, dword [ebp + 0x10]
add dword [esp + 0x24], ecx
movq qword [esp + 0x28], xmm0
movq xmm0, qword [eax]
add dword [esp + 0x2c], ecx
mov ecx, dword [edi + 0x198]
movq qword [esp + 0x44], xmm0
movq xmm0, qword [eax + 8]
mov eax, dword [edi + 0x74]
add dword [esp + 0x20], eax
add dword [esp + 0x28], eax
lea edx, [esp + 0x44]
push edx
push dword [ebp + 0xc]
movq qword [esp + 0x54], xmm0
mov eax, dword [ecx]
lea edx, [esp + 0x28]
push edx
call dword [eax + 8]
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14