Function at 0x140005770
Capabilities:
Get disk information
Get file size
Read file via mapping

Disassembly:
push rbp
push rbx
push r14
push r15
lea rbp, [rsp - 0xac8]
sub rsp, 0xbc8
mov rax, qword [0x140074040]
xor rax, rsp
mov qword [rbp + 0xab0], rax
mov rbx, rdx
mov r14, rcx
xor r15d, r15d
lea rdx, [rbp - 0x40]
mov rcx, rbx
mov dword [rbp - 0x40], r15d
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1400057eb
cmp dword [rbp - 0x40], r15d
jne 0x1400057eb
lea rcx, str.Cannot_map_a_file_with_a_length_of_zero._n
call fcn.1400055f0
mov byte [r14 + 0x20], r15b
mov rax, r14
mov rcx, qword [rbp + 0xab0]
xor rcx, rsp
call fcn.14002cd30
add rsp, 0xbc8
pop r15
pop r14
pop rbx
pop rbp
ret
xor r9d, r9d
mov qword [rsp + 0x28], r15
xor edx, edx
mov dword [rsp + 0x20], 1
mov rcx, rbx
lea r8d, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rbp - 0x50], rax
test rax, rax
je 0x1400057c7
lea rax, vtable.std::_Func_impl_no_alloc_class__class_std::optional_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______cdecl_GetFileNameFromHandle_void____ptr64_::_2::_lambda_1___void___.0
mov qword [rbp + 0x48], r15
mov qword [rsp + 0x30], rax
lea rdx, [rbp + 0x10]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x30]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
call fcn.140005dc0
mov rcx, qword [rsp + 0x68]
mov qword [rbp + 0x48], rax
test rcx, rcx
je 0x140005863
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x50]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], 1
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rbp - 0x48], rax
test rax, rax
jne 0x140005892
mov byte [r14 + 0x20], r15b
jmp 0x140005b1e
lea rax, vtable.std::_Func_impl_no_alloc_class__class_std::optional_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______cdecl_GetFileNameFromHandle_void____ptr64_::_2::_lambda_2___void___.0
mov qword [rbp + 8], r15
mov qword [rsp + 0x70], rax
lea rdx, [rbp - 0x30]
lea rax, [rbp - 0x48]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0x70]
lea rax, [rsp + 0x70]
mov qword [rbp - 0x58], rax
call fcn.140005d80
mov rcx, qword [rbp - 0x58]
mov qword [rbp + 8], rax
test rcx, rcx
je 0x1400058e0
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rbx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x104
lea r8, [rbp + 0x80]
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.PSAPI.DLL_GetMappedFileNameW]
test eax, eax
jne 0x140005910
mov byte [r14 + 0x20], r15b
jmp 0x140005af2
lea rdx, [rbp + 0x6b0]
mov word [rbp + 0x6b0], r15w
mov ecx, 0x1ff
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
jne 0x140005937
mov byte [r14 + 0x20], r15b
jmp 0x140005af2
mov eax, dword [0x140066354]
mov dword [rbp + 0x70], eax
movzx eax, word [0x140066358]
mov qword [rsp + 0xc00], rsi
mov esi, r15d
mov word [rbp + 0x74], ax
movzx eax, word [rbp + 0x6b0]
mov qword [rsp + 0xbc0], rdi
lea rdi, [rbp + 0x6b0]
nop dword [rax]
mov r8d, 0x104
mov word [rbp + 0x70], ax
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x140005aa0
lea rax, [rbp + 0x290]
mov rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], r15w
jne 0x1400059a1
cmp rbx, 0x104
jae 0x140005aa0
mov r8, rbx
lea rdx, [rbp + 0x290]
lea rcx, [rbp + 0x80]
call fcn.14003a42c
add rbx, rbx
test eax, eax
jne 0x1400059e3
cmp word [rbp + rbx + 0x80], 0x5c
lea esi, [rax + 1]
je 0x1400059e6
mov esi, r15d
test esi, esi
je 0x140005aa0
lea rax, [rbp + 0x80]
mov edx, 0x104
add rax, rbx
lea r9, [rbp + 0x70]
lea r8, [0x140066360]
mov qword [rsp + 0x20], rax
lea rcx, [rbp + 0x4a0]
call fcn.1400056b0
lea rcx, [rbp + 0x4a0]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], r15w
jne 0x140005a30
cmp rax, 0x7ffffffe
jbe 0x140005a4c
mov word [rbp + 0x80], r15w
jmp 0x140005aa0
lea r9, [rax - 0x105]
mov edx, 0x105
lea rax, [rbp + 0x80]
lea r8, [rbp + 0x4a0]
sub r8, rax
lea rcx, [rbp + 0x80]
lea rax, [r9 + rdx]
test rax, rax
je 0x140005a90
movzx eax, word [r8 + rcx]
test ax, ax
je 0x140005a90
mov word [rcx], ax
add rcx, 2
sub rdx, 1
jne 0x140005a70
test rdx, rdx
lea rax, [rcx - 2]
cmovne rax, rcx
mov word [rax], r15w
nop
movzx eax, word [rdi]
add rdi, 2
test ax, ax
jne 0x140005aa0
test esi, esi
jne 0x140005abc
movzx eax, word [rdi]
test ax, ax
jne 0x140005970
lea rdx, [rbp + 0x80]
lea rcx, [rbp + 0x50]
call fcn.140005c40
movups xmm0, xmmword [rbp + 0x50]
mov rdi, qword [rsp + 0xbc0]
movups xmm1, xmmword [rbp + 0x60]
mov rsi, qword [rsp + 0xc00]
movups xmmword [r14], xmm0
movups xmmword [r14 + 0x10], xmm1
mov byte [r14 + 0x20], 1
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140005b4f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 8]
test rcx, rcx
je 0x140005b1e
mov rax, qword [rcx]
lea rdx, [rbp - 0x30]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 8], r15
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x140005b4f
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x1400057cb
mov rax, qword [rcx]
lea rdx, [rbp + 0x10]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
jmp 0x1400057cb
call fcn.14002ddf0
int3