Function at 0x516260
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 esi, dword [ebp + 8]
mov edi, ecx
xor eax, ebp
lea edx, [esi + esi + 1]
mov dword [esp + 0x78], eax
mov eax, dword [ecx + 8]
mov ebx, dword [ebp + 0xc]
sub eax, dword [ecx + 4]
mov ecx, dword [ebp + 0x10]
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp edx, eax
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x50], eax
jae 0x516428
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], ebx
jmp 0x51631f
cmp esi, ecx
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x44]
mov ebx, ecx
sbb eax, dword [esp + 0x20]
jge 0x516420
mov eax, dword [esp + 0x28]
mov ecx, edi
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.005164a0
sub esp, 8
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x20]
lea edx, [esi + esi + 1]
cmp edx, eax
jae 0x516428
mov edi, dword [edi + 4]
mov dword [esp + 0x28], esi
lea esi, [edx + 1]
cmp esi, eax
mov dword [esp + 0x30], edi
jae 0x5163c6
lea ebx, [edx + edx*2]
lea ecx, [esi + esi*2]
mov eax, dword [edi + ebx*8 + 4]
mov dword [esp + 0x40], ebx
mov ebx, dword [edi + ebx*8]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi + ecx*8 + 4]
mov ecx, dword [edi + ecx*8]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], eax
xor eax, dword [esp + 0x24]
mov dword [esp + 0x54], ecx
xor ecx, ebx
or ecx, eax
jne 0x5163a0
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x30]
mov ecx, dword [edi + eax*8 + 8]
mov eax, dword [esp + 0x3c]
mov eax, dword [edi + eax*8 + 8]
cmp ecx, eax
jne 0x5163b9
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov eax, dword [edi + eax*8 + 0x10]
cmp eax, dword [edi + ebx*8 + 0x10]
jmp 0x5163bb
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x30]
cmp eax, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
sbb eax, dword [esp + 0x24]
setl al
jmp 0x5163be
cmp eax, ecx
setle al
mov ecx, dword [esp + 0x20]
test al, al
jne 0x5163c8
mov esi, edx
lea edx, [esi + esi*2]
mov dword [esp + 0x24], esi
mov eax, dword [edi + edx*8 + 4]
mov esi, dword [edi + edx*8]
mov ebx, eax
mov edi, esi
xor ebx, ecx
mov ecx, dword [esp + 0x2c]
xor edi, ecx
or edi, ebx
jne 0x5162e0
mov esi, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x44]
mov eax, dword [esi + edx*8 + 8]
cmp ecx, eax
jne 0x516410
mov eax, dword [esp + 0x34]
cmp dword [esi + edx*8 + 0x10], eax
jmp 0x516412
cmp eax, ecx
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
jle 0x5162f6
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x60], ebx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov ecx, dword [esp + 0x50]
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
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 0x1c