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

Disassembly:
push rbp
push rdi
mov eax, 0x2468
call fcn.18007fc70
sub rsp, rax
mov rax, qword [0x1800d1eb0]
xor rax, rsp
mov qword [rsp + 0x2440], rax
mov rbp, rdx
mov rdi, rcx
test rdx, rdx
jne 0x1800282a4
xor eax, eax
jmp 0x18002851b
cmp rcx, 0xffffffffffffffff
je 0x18002829d
mov qword [rsp + 0x2498], rsi
lea rdx, [rsp + 0x30]
xor esi, esi
mov dword [rsp + 0x30], esi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x1800282d1
cmp dword [rsp + 0x30], esi
je 0x180028513
xor r9d, r9d
xor edx, edx
mov rcx, rdi
lea r8d, [r9 + 2]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x2458], r13
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov r13, rax
test rax, rax
je 0x180028509
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
lea edx, [r9 + 4]
mov qword [rsp + 0x2450], r14
mov qword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x1800284f8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x800
mov r8, rbp
mov rcx, rax
mov rdx, r14
call qword [sym.imp.PSAPI.DLL_GetMappedFileNameW]
test eax, eax
je 0x1800284ea
lea rdx, [rsp + 0x40]
mov ecx, 0x1ff
mov word [rsp + 0x40], si
call qword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1800284ea
mov eax, dword [0x1800ab3d4]
mov qword [rsp + 0x2490], rbx
mov qword [rsp + 0x2460], r12
mov dword [rsp + 0x34], eax
movzx eax, word [0x1800ab3d8]
mov r12d, esi
mov word [rsp + 0x38], ax
lea rbx, [rsp + 0x40]
nop word [rax + rax]
movzx eax, word [rbx]
lea rdx, [rsp + 0x440]
lea rcx, [rsp + 0x34]
mov r8d, 0x800
mov word [rsp + 0x34], ax
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1800284c0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x440]
repne scasw ax, word [rdi]
not rcx
dec rcx
cmp ecx, 0x800
jae 0x1800284c0
mov edi, ecx
mov r8d, ecx
lea rdx, [rsp + 0x440]
mov rcx, rbp
call fcn.18007eaf4
mov r12d, esi
test eax, eax
sete r12b
test r12d, r12d
je 0x1800284c0
lea rax, [rbp + rdi*2]
lea r9, [rsp + 0x34]
lea r8, str._s_s
lea rcx, [rsp + 0x1440]
mov edx, 0x800
mov qword [rsp + 0x20], rax
call fcn.180026f90
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x1440]
repne scasw ax, word [rdi]
not rcx
dec rcx
mov r8, rcx
cmp rcx, 0x7ffffffe
jbe 0x180028474
mov word [rbp], si
jmp 0x1800284c0
lea rdi, [rsp + 0x1440]
mov edx, 0x802
mov rcx, rbp
sub rdi, rbp
nop word [rax + rax]
lea rax, [r8 + rdx - 0x802]
test rax, rax
je 0x1800284b4
movzx eax, word [rdi + rcx]
test ax, ax
je 0x1800284b4
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x180028490
jmp 0x1800284b9
test rdx, rdx
jne 0x1800284bd
sub rcx, 2
mov word [rcx], si
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x1800284c0
test r12d, r12d
jne 0x1800284da
cmp word [rbx], si
jne 0x1800283b0
mov r12, qword [rsp + 0x2460]
mov rbx, qword [rsp + 0x2490]
mov rcx, r14
mov esi, 1
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r14, qword [rsp + 0x2450]
mov r13, qword [rsp + 0x2458]
mov eax, esi
mov rsi, qword [rsp + 0x2498]
mov rcx, qword [rsp + 0x2440]
xor rcx, rsp
call fcn.18007a7c0
add rsp, 0x2468
pop rdi
pop rbp
ret