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

Disassembly:
jmp 0x180075a70
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x6e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2d8]
mov rax, qword [0x18018e148]
xor rax, rbp
mov qword [rbp + 0x268], rax
lea rcx, [0x1801a00a9]
call fcn.180072061
mov dword [rbp + 4], 0
mov qword [rbp + 0x28], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rbp + 0x290]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x180075b2a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ReadPayloadFromDisc__:_CreateFileW___failed
mov ecx, eax
call fcn.180070eaa
mov eax, 0xffffffff
jmp 0x180075cac
xor edx, edx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x180075b5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ReadPayloadFromDisc__:_file_is_empty
mov ecx, eax
call fcn.180070eaa
mov eax, 0xfffffffe
jmp 0x180075cac
mov eax, dword [rbp + 4]
add eax, 1
mov eax, eax
mov rcx, 0xffffffffffffffff
cmovb rax, rcx
mov rcx, rax
call fcn.180070c7a
mov qword [0x18018f340], rax
cmp qword [0x18018f340], 0
jne 0x180075bab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, dword [rbp + 4]
lea rdx, str.ReadPayloadFromDisc__:_mem_alloc___failed_dwFileSize_u
mov ecx, eax
call fcn.180070eaa
mov eax, 0xfffffffd
jmp 0x180075cac
mov dword [rbp + 0x44], 0
xor eax, eax
cmp eax, 1
je 0x180075c2d
mov dword [rbp + 0x64], 0
mov eax, dword [rbp + 0x44]
mov ecx, dword [rbp + 4]
sub ecx, eax
mov eax, ecx
mov ecx, dword [rbp + 0x44]
mov rdx, qword [0x18018f340]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x64]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x180075c16
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, str.ReadPayloadFromDisc___failed
mov ecx, eax
call fcn.180070eaa
xor eax, eax
jmp 0x180075cac
cmp dword [rbp + 0x64], 0
jne 0x180075c1e
jmp 0x180075c2d
mov eax, dword [rbp + 0x64]
mov ecx, dword [rbp + 0x44]
add ecx, eax
mov eax, ecx
mov dword [rbp + 0x44], eax
jmp 0x180075bb2
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbp + 0x298], 0
je 0x180075c4d
mov rax, qword [rbp + 0x298]
mov ecx, dword [rbp + 4]
mov dword [rax], ecx
lea r8, [rbp + 0x90]
mov edx, 0x80
lea rcx, [0x18015a000]
call fcn.180070c66
lea r8, [rbp + 0x90]
mov edx, dword [rbp + 4]
mov rcx, qword [0x18018f340]
call fcn.180071981
mov r8d, dword [rbp + 4]
mov rdx, qword [rbp + 0x290]
lea rcx, str.ReadPayloadFromDisc__:_file__S_loaded._dwFileSize_u
call fcn.18006f6ae
mov eax, dword [rbp + 4]
mov dword [0x18018f348], eax
mov edx, dword [rbp + 4]
mov rcx, qword [0x18018f340]
call fcn.180072020
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x180159d70]
call fcn.1800717ce
mov rax, rdi
mov rcx, qword [rbp + 0x268]
xor rcx, rbp
call fcn.18007077a
lea rsp, [rbp + 0x278]
pop rdi
pop rbp
ret