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

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rbx, rcx
movaps xmmword [rax - 0x48], xmm6
mov rcx, qword [rcx + 0x70]
lea rdx, [rbp + 0xb0]
xor edi, edi
movaps xmmword [rax - 0x58], xmm7
mov esi, edi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov ecx, edi
mov r12d, edi
test eax, eax
cmovne rcx, qword [rbp + 0xb0]
xor r14b, r14b
xor r15b, r15b
mov qword [rbp + 0xc0], rcx
test rcx, rcx
jle 0x140061141
movsd xmm6, qword [0x1401438f8]
xorps xmm7, xmm7
mov r13d, dword [rbp + 0xb0]
test r14b, r14b
je 0x140060ed3
test r15b, r15b
jne 0x140061141
mov rcx, qword [rbx + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rbx + 0x70]
lea r9, [rbp + 0xb0]
mov r8d, socket
mov dword [rbp + 0xb0], edi
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
mov eax, ecx
shr eax, 0x10
test ax, ax
jne 0x140060f26
mov byte [rbx + 0x30c], al
mov r13d, edi
jmp 0x140060f46
cmp word [rsp + 0x30], 0
jne 0x140060f3d
mov byte [rbx + 0x30c], 1
mov r13d, 0x3e8
jmp 0x140060f46
test r12d, r12d
je 0x140061178
cmp byte [rbx + 0x30c], 0
je 0x140060f7b
mov eax, dword [rsp + 0x34]
bswap eax
mov dword [rsp + 0x34], eax
mov eax, dword [rsp + 0x38]
bswap eax
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x3c]
bswap eax
mov dword [rsp + 0x3c], eax
mov eax, dword [rsp + 0x40]
bswap eax
mov dword [rsp + 0x40], eax
bswap ecx
jmp 0x140060f7f
mov eax, dword [rsp + 0x40]
sub ecx, r13d
mov dword [rbp + 0xb0], edi
mov r8d, 0x100
mov dword [rsp + 0x30], ecx
mov rcx, qword [rbx + 0x70]
lea r9, [rbp + 0xb0]
cmp eax, r8d
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x50]
cmovl r8d, eax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x40]
mov ecx, dword [rsp + 0x38]
add rax, 0x14
add rsi, rax
mov byte [rbp + 0x4f], 0
mov eax, dword [rsp + 0x30]
test r15b, r15b
jne 0x140061047
test eax, eax
jne 0x140061047
cmp dword [rsp + 0x3c], eax
jne 0x140061047
cmp ecx, 1
jne 0x140061047
cmp dword [rsp + 0x34], ecx
jne 0x140061047
mov rcx, qword [rbx + 0x70]
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov rcx, qword [rbx + 0x70]
lea r9, [rbp + 0xb0]
mov r8d, 8
mov dword [rbp + 0xb0], edi
lea rdx, [rbp + 0xb8]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
movsd xmm0, qword [rbp + 0xb8]
comisd xmm0, xmm7
jbe 0x14006103b
addsd xmm0, xmm6
cvttsd2si rax, xmm0
mov dword [rbx + 0x28], eax
add rsi, 8
mov r15b, 1
jmp 0x140061131
test r14b, r14b
jne 0x140061131
cmp ecx, 8
ja 0x140061171
test eax, eax
je 0x1400610ba
cmp eax, 0x1e
je 0x140061091
cmp eax, 0x32
jne 0x140061171
lea rdi, [rbx + 0x58]
mov rcx, rdi
lea r9d, [rax - 0x33]
lea r8, [0x14012f1f8]
lea edx, [rax - 0x30]
call fcn.140025fb0
mov dword [rbx + 0x308], 1
jmp 0x1400610e1
mov r9d, 0xffffffff
lea rdi, [rbx + 0x58]
lea r8, [0x14012f1c8]
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.140025fb0
mov dword [rbx + 0x308], 2
jmp 0x1400610e1
mov r9d, 0xffffffff
lea rdi, [rbx + 0x58]
lea r8, [0x14012f270]
mov rcx, rdi
lea edx, [r9 + 3]
call fcn.140025fb0
mov dword [rbx + 0x308], 8
mov r9d, 0xffffffff
lea r8, [rsp + 0x50]
mov rcx, rdi
mov r14b, 1
lea edx, [r9 + 4]
call fcn.140025fb0
mov ecx, dword [rbx + 0x308]
mov edx, dword [rsp + 0x34]
mov qword [rbx + 0x290], rsi
mov qword [rbx + 0x18], rdx
lea eax, [rcx*8]
mov dword [rbx + 0x2ac], eax
mov eax, dword [rsp + 0x38]
imul rcx, rax
mov dword [rbx + 0x20], eax
imul rcx, rdx
add rsi, rcx
xor edi, edi
inc r12d
cmp rsi, qword [rbp + 0xc0]
jl 0x140060ec5
test r14b, r14b
mov eax, 0x8004020e
cmovne eax, edi
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov eax, 0x80040208
jmp 0x14006114c
mov eax, 0x8004020d
jmp 0x14006114c