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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov eax, dword [0x63a1e8]
mov edx, dword [ebp + 0xc]
xor eax, ebp
lea edx, [edx*8]
mov dword [esp + 0x78], eax
lea edx, [edx + edx*2]
mov dword [esp + 0x24], ecx
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x1c], esi
mov ebx, dword [eax + edx + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x24]
mov dword [ebx + 0x9c], 0xffffffff
mov dword [esp + 0x3c], edi
mov dword [esp + 0x20], eax
mov esi, dword [ecx + 4]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esi + edx]
mov edx, dword [esi + edx + 4]
mov dword [esp + 0x34], esi
mov edi, edx
mov dword [esp + 0x2c], ebx
xor ebx, ecx
xor edi, eax
or ebx, edi
jne 0x516096
mov ebx, dword [ebp + 0xc]
mov edx, dword [esp + 0x1c]
lea edi, [ebx + ebx*2]
mov eax, dword [esi + edi*8 + 8]
cmp edx, eax
jne 0x516105
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
cmp dword [esi + edi*8 + 0x10], eax
jmp 0x516107
cmp dword [esp + 0x2c], ecx
mov edi, dword [esp + 0x24]
mov ebx, dword [ebp + 0xc]
sbb edx, eax
mov edx, dword [esp + 0x1c]
jge 0x516111
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x50], edx
mov ecx, edi
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
movsd xmm0, qword [esp + 0x58]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x48]
movsd xmm1, qword [esp + 0x50]
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
mov dword [esp], ebx
call fcn.00516260
sub esp, 0x1c
mov esi, eax
jmp 0x516236
cmp eax, edx
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jle 0x5160a9
xor esi, esi
test ebx, ebx
je 0x5161e1
mov eax, dword [esp + 0x34]
nop
lea esi, [ebx - 1]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
shr esi, 1
lea edx, [esi + esi*2]
mov ebx, dword [eax + edx*8]
mov edi, dword [eax + edx*8 + 4]
mov eax, dword [esp + 0x20]
mov dword [esp + 0x44], edi
xor eax, edi
mov edi, ecx
xor ecx, ebx
mov dword [esp + 0x40], ebx
or ecx, eax
jne 0x516170
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
mov edi, dword [ecx + edx*8 + 8]
cmp edi, eax
jne 0x516190
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + edx*8 + 0x10]
mov eax, dword [esp + 0x2c]
jle 0x516198
jmp 0x5161bf
cmp edi, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
sbb eax, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
jl 0x516198
jmp 0x5161bf
cmp eax, edi
mov eax, dword [esp + 0x2c]
jg 0x5161bf
mov edi, dword [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], esi
mov ecx, edi
call fcn.005164a0
sub esp, 8
test esi, esi
je 0x5161d3
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov ebx, esi
jmp 0x516120
mov esi, eax
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x5161e1
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x70], edx
mov dword [esp + 0x74], ecx
mov ecx, edi
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x14], xmm0
movsd xmm0, qword [esp + 0x60]
movsd xmm1, qword [esp + 0x68]
movsd qword [esp + 0xc], xmm1
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.00516620
sub esp, 0x1c
lea eax, [esi + esi*2]
mov esi, dword [ebp + 8]
shl eax, 3
add eax, dword [edi + 4]
mov dword [esi], eax
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.005909f1
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20