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

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x330
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x320], rax
mov qword [rsp + 0xe8], 0
mov dword [rsp + 0xf4], 0
mov dword [rsp + 0xf0], 0
mov dword [rsp + 0xd4], 0
mov qword [rsp + 0xd8], 0
mov dword [rsp + 0xd0], 0
mov byte [rsp + 0xe0], 0
mov byte [rsp + 0x50], 0
lea rdi, [rsp + 0x51]
xor eax, eax
mov ecx, 0x78
rep stosb byte [rdi], al
lea rcx, [rsp + 0xe8]
call fcn.140004520
movzx eax, al
test eax, eax
jne 0x140004985
jmp 0x140004bc2
mov eax, dword [rsp + 0x340]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0xe8]
lea r8, [0x140008028]
mov edx, 0x104
lea rcx, [rsp + 0x100]
call qword [sym.imp.MSVCR90.dll_swprintf_s]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
lea rcx, [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0xd8], 0xffffffffffffffff
jne 0x140004a21
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x310], eax
mov edx, dword [rsp + 0x310]
lea rcx, str.CreateFile_failed__error_code___d
call fcn.140004490
jmp 0x140004bc2
xor edx, edx
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0xd4], eax
mov eax, dword [rsp + 0xd4]
add eax, 1
mov ecx, eax
call qword [sym.imp.MSVCR90.dll_malloc]
mov rdx, rax
mov rax, qword [rsp + 0x348]
mov qword [rax], rdx
mov rax, qword [rsp + 0x348]
cmp qword [rax], 0
jne 0x140004a90
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x314], eax
mov edx, dword [rsp + 0x314]
lea rcx, str.Memeory_Allocation_failed__error_code___d
call fcn.140004490
jmp 0x140004bc2
mov eax, dword [rsp + 0xd4]
add eax, 1
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x348]
mov rcx, qword [rcx]
call sub.MSVCR90.dll_memset
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xf4]
mov r8d, dword [rsp + 0xd4]
mov rdx, qword [rsp + 0x348]
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0xd0], eax
cmp dword [rsp + 0xd0], 0
jne 0x140004b1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x318], eax
mov edx, dword [rsp + 0x318]
lea rcx, str.ReadFile_failed__error_code___d
call fcn.140004490
jmp 0x140004bc2
mov eax, dword [rsp + 0xf4]
mov dword [rsp + 0xf0], eax
mov eax, dword [rsp + 0xd4]
cmp dword [rsp + 0xf0], eax
jae 0x140004b9d
mov eax, dword [rsp + 0xf0]
mov r8d, dword [rsp + 0xd4]
sub r8d, eax
mov edx, dword [rsp + 0xf0]
mov rax, qword [rsp + 0x348]
add rdx, qword [rax]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xf4]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rsp + 0xd0], eax
mov ecx, dword [rsp + 0xf4]
mov eax, dword [rsp + 0xf0]
add eax, ecx
mov dword [rsp + 0xf0], eax
jmp 0x140004b2a
mov rcx, qword [rsp + 0x350]
mov eax, dword [rsp + 0xd4]
mov dword [rcx], eax
mov byte [rsp + 0xe0], 1
lea rcx, str.Objects_Retrieved_Successfully
call fcn.140004490
cmp qword [rsp + 0xd8], 0
je 0x140004bdb
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsp + 0xe8], 0
je 0x140004c00
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.MSVCR90.dll_free]
mov qword [rsp + 0xe8], 0
mov al, byte [rsp + 0xe0]
mov rcx, qword [rsp + 0x320]
xor rcx, rsp
call fcn.140001070
add rsp, 0x330
pop rdi
ret