Function at 0x52f3f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61f1e5
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x69bd40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x64], edi
mov esi, dword [ebp + 8]
call fcn.0052f840
push 0
push 0x80
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [edi + 0xa4], eax
cmp eax, 0xffffffff
jne 0x52f47c
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x52f472
sub eax, 2
je 0x52f468
mov eax, 0xa
jmp 0x52f7a0
mov eax, 8
jmp 0x52f7a0
mov eax, 7
jmp 0x52f7a0
mov ecx, edi
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi + 0xa6], ax
test ax, ax
jne 0x52f480
push 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0x44
lea esi, [edi + 0x60]
push esi
push dword [edi + 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push dword [edi + 0xa4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [esi], 0xc6b4e32f
mov edx, eax
mov dword [ebp - 0x70], edx
je 0x52f4de
mov ecx, edi
call fcn.0052f840
mov eax, 9
jmp 0x52f7a0
movups xmm0, xmmword [edi + 0x64]
mov ecx, dword [ebp + 0xc]
movups xmmword [edi + 0x20], xmm0
movups xmm0, xmmword [edi + 0x74]
movups xmmword [edi + 0x30], xmm0
movups xmm0, xmmword [edi + 0x84]
movups xmmword [edi + 0x40], xmm0
movups xmm0, xmmword [edi + 0x94]
movups xmmword [edi + 0x50], xmm0
test ecx, ecx
je 0x52f53a
mov eax, dword [ecx]
xor dword [edi + 0x20], eax
mov eax, dword [ecx + 4]
xor dword [edi + 0x24], eax
mov eax, dword [ecx + 8]
xor dword [edi + 0x28], eax
mov eax, dword [ecx + 0xc]
xor dword [edi + 0x2c], eax
mov eax, dword [ecx + 0x10]
xor dword [edi + 0x30], eax
mov eax, dword [ecx + 0x14]
xor dword [edi + 0x34], eax
mov eax, dword [ecx + 0x18]
xor dword [edi + 0x38], eax
mov eax, dword [ecx + 0x1c]
xor dword [edi + 0x3c], eax
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x52f570
mov eax, dword [ecx]
xor dword [edi + 0x40], eax
mov eax, dword [ecx + 4]
xor dword [edi + 0x44], eax
mov eax, dword [ecx + 8]
xor dword [edi + 0x48], eax
mov eax, dword [ecx + 0xc]
xor dword [edi + 0x4c], eax
mov eax, dword [ecx + 0x10]
xor dword [edi + 0x50], eax
mov eax, dword [ecx + 0x14]
xor dword [edi + 0x54], eax
mov eax, dword [ecx + 0x18]
xor dword [edi + 0x58], eax
mov eax, dword [ecx + 0x1c]
xor dword [edi + 0x5c], eax
mov esi, 0x44
cmp edx, esi
jbe 0x52f79e
nop dword [eax]
push 0
push 0
push 0
push esi
push dword [edi + 0xa4]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x14
lea eax, [ebp - 0x24]
push eax
push dword [edi + 0xa4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x8c], 0
lea esi, [ecx + eax]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x84], eax
movups xmm0, xmmword [ebp - 0x90]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x44]
movups xmmword [ebp - 0x3c], xmm0
push eax
movq xmm0, qword [ebp - 0x80]
mov dword [ebp - 0x6c], esi
movq qword [ebp - 0x2c], xmm0
call fcn.0052ce90
add esp, 4
mov dword [ebp - 0x50], eax
mov ecx, edi
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0052cde0
cmp dword [ebp - 0x54], 0
jne 0x52f795
cmp dword [edi + 8], 0x6666666
je 0x52f7bd
lea eax, [edi + 4]
mov dword [ebp - 0x60], eax
push 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c], 0
call fcn.0059df22
movups xmm0, xmmword [ebp - 0x44]
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x5c], esi
movups xmmword [esi + 8], xmm0
movups xmm0, xmmword [ebp - 0x34]
movups xmmword [esi + 0x18], xmm0
mov eax, dword [edi + 8]
inc eax
movss xmm3, dword [edi]
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x62d680]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x48], eax
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x62d680]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, xmm3
seta al
test al, al
je 0x52f735
divss xmm2, xmm3
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x78], xmm0
fld qword [ebp - 0x78]
fstp qword [esp]
call fcn.005f2340
fstp qword [ebp - 0x78]
movsd xmm0, qword [ebp - 0x78]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.0059e5e0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebp - 0x48]
cmp eax, ecx
jae 0x52f70b
cmp eax, 0x200
jae 0x52f709
shl eax, 3
cmp eax, ecx
jae 0x52f70b
mov eax, ecx
push eax
mov ecx, edi
call fcn.0052eb10
push dword [ebp - 0x50]
lea eax, [esi + 8]
mov ecx, edi
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0052cde0
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x54], eax
jmp 0x52f738
mov edx, dword [ebp - 0x58]
mov eax, dword [edi + 8]
mov ecx, dword [edx + 4]
inc eax
mov dword [edi + 8], eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [ecx], esi
mov dword [edx + 4], esi
mov eax, dword [edi + 0x18]
and eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x48], ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x5c], 0
mov edi, dword [ecx + eax*8]
cmp edi, dword [esi]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
jne 0x52f774
mov dword [ecx + eax*8], esi
jmp 0x52f787
cmp dword [ecx + eax*8], edx
jne 0x52f77e
mov dword [ecx + eax*8], esi
jmp 0x52f78b
mov edx, dword [ebp - 0x48]
cmp dword [ecx + eax*8 + 4], edx
jne 0x52f78b
mov dword [ecx + eax*8 + 4], esi
mov esi, dword [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
cmp esi, dword [ebp - 0x70]
jb 0x52f580
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0059df60
mov esp, ebp
pop ebp
ret 0xc
push str.unordered_map_set_too_long
call fcn.0059b828
int3