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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x290
mov rcx, qword [0x18000d2c8]
mov rdi, r8
lea rdx, [rbp - 0x80]
mov r8d, 0x104
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x180001482
lea rdx, [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.RPCRT4.dll_UuidFromStringA]
test eax, eax
js 0x180001482
movzx eax, byte [rsp + 0x51]
movzx ecx, byte [rsp + 0x53]
movzx edi, byte [rsp + 0x50]
movzx r15d, byte [rsp + 0x55]
movzx r12d, byte [rsp + 0x57]
and qword [rsp + 0x30], rbx
and dword [rsp + 0x28], ebx
shl edi, 8
shl ecx, 8
or edi, eax
movzx eax, byte [rsp + 0x52]
shl r15d, 8
shl edi, 8
lea r8d, [rbx + 1]
shl r12d, 8
or edi, eax
movzx eax, byte [rsp + 0x54]
xor r9d, r9d
or ecx, eax
movzx eax, byte [rsp + 0x56]
mov edx, 0x80000000
or r15d, eax
movzx eax, byte [rsp + 0x58]
mov dword [rsp + 0x40], ecx
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x20], 3
or r12d, eax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
cmp rax, 0xffffffffffffffff
je 0x180001482
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [rsp + 0x40]
lea ecx, [rdx + rdi]
cmp eax, ecx
jb 0x1800013e4
lea ecx, [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x1800013e4
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rsp + 0x40]
and qword [rsp + 0x20], rbx
lea r9, [rsp + 0x40]
mov rdx, rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800013db
mov eax, dword [rsp + 0x40]
lea r8, [rsp + 0x48]
mov r9, rsi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
call fcn.1800014a4
test eax, eax
je 0x1800013db
mov rdx, qword [rsp + 0x48]
lea ecx, [r12 + r15]
cmp rdx, rcx
jb 0x1800013db
test dl, 7
jne 0x1800013db
lea ecx, [rbx + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800013db
mov ecx, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9, rsi
mov rcx, rax
lea r13, [rax + rdx]
call fcn.1800014a4
test eax, eax
jne 0x1800013d2
lea r8d, [rbx + 8]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x60]
call fcn.180001b90
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x68]
call fcn.180001b04
mov r8, qword [rsp + 0x48]
lea r9, [rsp + 0x60]
lea rcx, [rsp + 0x68]
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rdi
call fcn.18000184c
test eax, eax
jne 0x1800013d2
mov rdx, qword [rsp + 0x48]
lea ecx, [rbx + 0x40]
lea rdx, [rdx*2 + 0x10]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x1800013d2
mov r9d, dword [rsp + 0x48]
mov ecx, r15d
lea r8, [rax + 8]
add rcx, r13
mov edx, r12d
add r9d, r9d
call fcn.180001020
test eax, eax
je 0x1800013c7
mov eax, eax
mov qword [rbx], rax
jmp 0x1800013d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x180001482
mov eax, dword [rbx]
and qword [rsp + 0x28], 0
xor r9d, r9d
lea r8d, [r9 + 0x40]
xor edx, edx
or rcx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x180001479
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rdi, rax
test rax, rax
je 0x180001470
mov qword [0x18000d2c0], rax
mov r8, qword [rbx]
lea rdx, [rbx + 8]
mov rcx, rax
call fcn.180001b90
mov rcx, qword [0x18000d2c8]
mov qword [rdi + 0x46], rcx
mov rcx, rbx
call fcn.180001b70
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret