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

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb8
mov rax, qword [0x14009b090]
xor rax, rsp
mov qword [rbp - 1], rax
mov r13, qword [rbp + 0x7f]
mov r15, rdx
lea rdx, [rbp - 0x39]
mov r12, r9
mov r14, r8
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x140024ffd
mov eax, 0x200
jmp 0x140025267
mov r8d, dword [rbp - 0x39]
mov r9d, r8d
and r9d, 1
mov qword [rsp + 0xb0], rbx
mov ecx, r9d
mov qword [rsp + 0xa8], rsi
or ecx, 2
mov r10d, r8d
test r8b, 2
mov ebx, 0x41000000
cmove ecx, r9d
mov edx, ecx
or edx, 4
test r8b, 4
cmove edx, ecx
mov eax, edx
or eax, 0x10
and r10d, 0x10
cmove eax, edx
mov ecx, eax
or ecx, 0x20
test r8b, 0x20
cmove ecx, eax
test r10d, r10d
mov eax, 0x81000000
cmove ebx, eax
or ebx, ecx
test r9d, r9d
jne 0x140025076
test r10d, r10d
mov ebx, 0x41800000
mov eax, 0x81800000
cmove ebx, eax
or ebx, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp eax, 0x28
jbe 0x140025156
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp - 0x5d]
mov qword [rsp + 0x20], 0
mov r8d, 2
lea rdx, [rbp - 0x61]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 0x24]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp - 0x5d]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rbp - 0x59]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x54ad
cmp word [rbp - 0x61], ax
jne 0x140025156
mov edx, dword [rbp - 0x59]
lea eax, [rdx + 0x34]
cmp esi, eax
jbe 0x140025156
xor r9d, r9d
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea r9, [rbp - 0x5d]
mov qword [rsp + 0x20], 0
mov r8d, 4
lea rdx, [rbp - 0x51]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp - 0x51]
cmp eax, 0x5a4d
je 0x140025152
add eax, 0xffffbab4
cmp eax, 4
ja 0x140025156
mov ecx, socket
bt ecx, eax
jae 0x140025156
bts ebx, 0x16
test r15, r15
je 0x14002515e
mov dword [r15], ebx
mov rbx, qword [rsp + 0xb0]
test r14, r14
je 0x14002516e
mov dword [r14], esi
mov rcx, qword [rbp - 0x25]
mov rsi, qword [rsp + 0xa8]
test r12, r12
je 0x1400251f8
mov r8, qword [rbp - 0x2d]
movabs r10, 0xfe624e212ac18000
add r8, r10
movabs r9, 0xd6bf94d5e57a42bd
mov rax, r9
imul r8
add rdx, r8
lea r8, [rcx + r10]
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r9
mov qword [r12], rdx
imul r8
mov rax, r9
add rdx, r8
sar rdx, 0x17
mov r8, rdx
shr r8, 0x3f
add rdx, r8
mov r8, qword [rbp - 0x35]
mov qword [r12 + 8], rdx
add r8, r10
imul r8
add rdx, r8
sar rdx, 0x17
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [r12 + 0x10], rdx
test r13, r13
je 0x140025265
mov qword [rbp - 0x51], rcx
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x51]
call qword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
movzx eax, word [rbp - 0x47]
movzx ecx, word [rbp - 0x49]
and ax, 0xf
sub cx, 0x3c
shl cx, 4
or cx, ax
movzx eax, word [rbp - 0x43]
and eax, 0x1f
shl cx, 5
movzx edx, cx
movzx ecx, word [rbp - 0x3f]
or edx, eax
movzx eax, word [rbp - 0x41]
and cx, 0x3f
shl ax, 6
or cx, ax
shl edx, 0x10
shl cx, 5
movzx eax, cx
or edx, eax
movzx eax, word [rbp - 0x3d]
add ax, ax
and eax, 0x1f
or edx, eax
mov dword [r13], edx
xor eax, eax
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.14004be10
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret