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

Disassembly:
jmp 0x14001b500
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x218
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x238]
mov rax, qword [0x140039040]
xor rax, rbp
mov qword [rbp + 0x1c0], rax
lea rcx, [0x1400410ff]
call fcn.140011a05
nop
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov dword [rbp + 0xa4], 0
mov dword [rbp + 0xc4], 0
mov eax, dword [rbp + 0x1f0]
mov dword [rbp + 0xe4], eax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x1f8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001b5f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_the_DLL_file__Error_Code__x_n
call fcn.1400114d3
nop
mov eax, 0xffffffff
jmp 0x14001b75b
xor edx, edx
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 0xffffffff
je 0x14001b616
cmp dword [rbp + 0xa4], 0
jne 0x14001b62b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_the_DLL_file_size__Error_Code__x_n
call fcn.1400114d3
nop
mov eax, dword [rbp + 0xa4]
mov qword [rbp + 0x1b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x1b8]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x14001b683
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_get_the_DLL_file_size__Error_Code__x_n
call fcn.1400114d3
nop
mov eax, 0xffffffff
jmp 0x14001b75b
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xc4]
mov r8d, dword [rbp + 0xa4]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001b6c6
lea rcx, str.Failed_to_alloc_a_buffer_
call fcn.1400114d3
nop
mov eax, 0xffffffff
jmp 0x14001b75b
mov r8d, dword [rbp + 0xe4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x14001b701
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_open_the_target_process__Error_Code__x_n
call fcn.1400114d3
nop
mov eax, 0xffffffff
jmp 0x14001b75b
xor r8d, r8d
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x48]
call fcn.140011032
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xffffffff
jne 0x14001b724
mov eax, 0xffffffff
jmp 0x14001b75b
cmp qword [rbp + 0x88], 0
je 0x14001b747
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x88]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp qword [rbp + 0x48], 0
je 0x14001b759
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14002ff60]
call fcn.140011875
mov rax, rdi
mov rcx, qword [rbp + 0x1c0]
xor rcx, rbp
call fcn.14001150a
lea rsp, [rbp + 0x1d8]
pop rdi
pop rbp
ret