Function at 0x51ee80
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 edx, dword [ebp + 0xc]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [ecx + 4]
lea edx, [edx*8]
lea edx, [edx + edx*2]
mov ebx, dword [eax + edx + 0x14]
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [esp + 0x1c], esi
mov edi, dword [ebp + 0x1c]
mov dword [esp + 0x38], edi
mov edi, dword [ebp + 0x20]
mov dword [esp + 0x30], edi
mov edi, dword [ebp + 0x24]
mov dword [esp + 0x3c], edi
mov dword [ebx + 0x9c], 0xffffffff
mov dword [esp + 0x24], ecx
mov esi, dword [ecx + 4]
mov ecx, dword [esp + 0x28]
mov ebx, dword [esi + edx]
mov edx, dword [esi + edx + 4]
mov edi, edx
xor edi, eax
mov dword [esp + 0x2c], ebx
xor ebx, ecx
or ebx, edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x34], esi
jne 0x51ef26
mov ebx, dword [ebp + 0xc]
lea edi, [ebx + ebx*2]
mov eax, dword [esi + edi*8 + 8]
mov edx, dword [esp + 0x1c]
cmp edx, eax
jne 0x51ef87
mov eax, dword [esp + 0x30]
cmp dword [esi + edi*8 + 0x10], eax
mov edx, dword [esp + 0x1c]
jmp 0x51ef89
cmp dword [esp + 0x2c], ecx
sbb edx, eax
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov ebx, dword [ebp + 0xc]
jge 0x51ef93
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], edx
mov eax, dword [esp + 0x38]
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
movups xmm0, xmmword [esp + 0x48]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
mov ecx, edi
call fcn.0051f0e0
sub esp, 0x1c
mov esi, eax
jmp 0x51f0b8
cmp eax, edx
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
jle 0x51ef39
xor esi, esi
test ebx, ebx
je 0x51f071
mov eax, dword [esp + 0x34]
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
lea esi, [ebx - 1]
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
mov dword [esp + 0x40], ebx
xor ecx, ebx
or ecx, eax
jne 0x51f000
mov ecx, dword [esp + 0x34]
mov edi, dword [ecx + edx*8 + 8]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x51f020
mov eax, dword [esp + 0x30]
cmp eax, dword [ecx + edx*8 + 0x10]
mov eax, dword [esp + 0x2c]
jle 0x51f028
jmp 0x51f04f
cmp edi, dword [esp + 0x40]
mov eax, dword [esp + 0x20]
sbb eax, dword [esp + 0x44]
mov eax, dword [esp + 0x2c]
jl 0x51f028
jmp 0x51f04f
cmp eax, edi
mov eax, dword [esp + 0x2c]
jg 0x51f04f
mov dword [esp + 4], eax
mov dword [esp], esi
mov edi, dword [esp + 0x24]
mov ecx, edi
call fcn.0051f310
sub esp, 8
test esi, esi
je 0x51f063
mov eax, dword [edi + 4]
mov ebx, esi
mov ecx, dword [esp + 0x28]
jmp 0x51efb0
mov esi, eax
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
jmp 0x51f071
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor esi, esi
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x74], eax
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x14], xmm0
movups xmm0, xmmword [esp + 0x60]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov ecx, edi
call fcn.0051f480
sub esp, 0x1c
lea eax, [esi + esi*2]
shl eax, 3
add eax, dword [edi + 4]
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov ecx, dword [esp + 0x78]
xor ecx, ebp
call fcn.00596351
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x20