Function at 0x140008bb4
Capabilities:
Get file size

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r12b, r8b
mov rsi, rdx
mov r13, rcx
xor edi, edi
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x38], rdi
mov qword [rax - 0x78], rdi
mov dword [rax - 0x80], 0x8000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [rdi + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r14, rax
mov qword [rbp - 0x28], rax
lea rcx, [rax + 1]
cmp rcx, 1
jbe 0x140008d6e
lea rdx, [rbp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop dword [rax + rax]
test eax, eax
je 0x140008dad
mov rbx, qword [rbp + 0x48]
cmp rbx, 0x7fffffff
jg 0x140008dec
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
nop dword [rax + rax]
mov r15, rax
mov qword [rbp - 0x40], rax
lea rcx, [rax + 1]
cmp rcx, 1
jbe 0x140008e1f
mov eax, ebx
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [rdi + 4]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
nop dword [rax + rax]
mov rdi, rax
mov qword [rbp - 0x38], rax
test rax, rax
je 0x140008d2e
mov byte [rsp + 0x20], r12b
mov r9d, ebx
mov r8, rax
mov rdx, rsi
mov rcx, r13
call fcn.140008e64
nop
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
nop dword [rax + rax]
nop
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
nop
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
lea r11, [rsp + 0x80]
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
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
nop
mov r8d, eax
mov rdx, rsi
lea rcx, str.Unable_to_map_file__ls:_MapViewOfFile_error__u.
call fcn.14000b758
lea rdx, str.MapViewOfFile
lea rcx, [rbp - 0x20]
call fcn.1400022bc
lea rdx, [0x140049268]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
mov rdx, rsi
lea rcx, str.Unable_to_open_file__ls:_CreateFile_error__u.
call fcn.14000b758
lea rdx, str.CreateFile
lea rcx, [rbp - 0x20]
call fcn.1400022bc
lea rdx, [0x140049268]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
mov rdx, rsi
lea rcx, str.Unable_to_get_size_of_file__ls:_GetFileSizeEx_error__u.
call fcn.14000b758
lea rdx, [0x1400396b8]
lea rcx, [rbp - 0x20]
call fcn.1400022bc
lea rdx, [0x140049268]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
mov r8, rbx
mov rdx, rsi
lea rcx, str.File__ls_is_too_large___llu_bytes_.
call fcn.14000b758
lea rdx, str.File_size
lea rcx, [rbp - 0x20]
call fcn.1400022bc
lea rdx, [0x140049268]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r8d, eax
mov rdx, rsi
lea rcx, str.Unable_to_create_mapping_for_file__ls:_CreateFileMapping_error__u.
call fcn.14000b758
lea rdx, str.CreateFileMapping
lea rcx, [rbp - 0x20]
call fcn.1400022bc
lea rdx, [0x140049268]
lea rcx, [rbp - 0x20]
call sub.api_ms_win_crt_private_l1_1_0.dll__CxxThrowException
int3