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

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x8a0
mov rax, qword [0x1801aef28]
xor rax, rsp
mov qword [rsp + 0x880], rax
cmp dword [0x1801d2748], 0
mov r15d, r8d
mov r14, rdx
mov rdi, rcx
jne 0x18006ed58
lea rcx, [0x18015c3b0]
mov dword [0x1801d2748], 1
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x18006ed58
lea rdx, str.GetMappedFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1801d2740], rax
jmp 0x18006ed5f
mov rax, qword [0x1801d2740]
xor ebx, ebx
mov esi, ebx
cmp rdi, 0xffffffffffffffff
je 0x18006efac
test rax, rax
je 0x18006efac
test r14, r14
je 0x18006efac
test r15d, r15d
je 0x18006efac
lea rdx, [rsp + 0x30]
mov rcx, rdi
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x18006eda8
cmp dword [rsp + 0x30], ebx
je 0x18006efac
xor r9d, r9d
xor edx, edx
mov rcx, rdi
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x898], r12
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r12, rax
test rax, rax
je 0x18006ef74
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x890], r13
mov qword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r13, rax
test rax, rax
je 0x18006ef6c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x250]
mov r9d, 0x104
mov rcx, rax
mov rdx, r13
call qword [0x1801d2740]
test eax, eax
je 0x18006ef63
lea rcx, [rsp + 0x42]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x40], bx
call fcn.1800a1250
lea rdx, [rsp + 0x40]
mov ecx, 0x206
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x18006ef63
xor eax, eax
mov qword [rsp + 0x8e8], rbp
mov ebp, ebx
mov dword [rsp + 0x36], eax
lea rbx, [rsp + 0x40]
nop word [rax + rax]
mov eax, dword [rbx]
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x34]
mov r8d, 0x104
mov dword [rsp + 0x34], eax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x18006ef5b
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x460]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov rdi, rcx
cmp rcx, 0x104
jae 0x18006ef42
mov r8, rcx
lea rdx, [rsp + 0x460]
lea rcx, [rsp + 0x250]
call fcn.1800a256c
xor ebp, ebp
test eax, eax
sete bpl
test ebp, ebp
je 0x18006ef42
lea rax, [rsp + rdi*2 + 0x250]
lea r9, [rsp + 0x34]
lea r8, [0x180145f70]
lea rcx, [rsp + 0x670]
mov edx, 0x103
mov qword [rsp + 0x20], rax
call fcn.1800a2084
mov r8, r15
xor edx, edx
add r8, r8
mov rcx, r14
call fcn.1800a1250
lea r8d, [r15 - 1]
lea rdx, [rsp + 0x670]
mov rcx, r14
call fcn.1800a11c4
mov esi, 1
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x18006ef42
test ebp, ebp
jne 0x18006ef5b
cmp word [rbx], bp
jne 0x18006ee80
mov rbp, qword [rsp + 0x8e8]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r13, qword [rsp + 0x890]
cmp r12, 0xffffffffffffffff
je 0x18006ef83
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r12, qword [rsp + 0x898]
mov eax, esi
mov rcx, qword [rsp + 0x880]
xor rcx, rsp
call fcn.1800a1220
add rsp, 0x8a0
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
jmp 0x18006ef8d