Function at 0x140005dc8
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1400481f8]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, r8
mov qword [rbp - 0x78], r8
mov rbx, rdx
mov rax, qword [0x140048860]
mov qword [rsp + 0x70], rax
xor eax, eax
test r8, r8
jne 0x140005e6e
lea ecx, [rax + 0x57]
call fcn.14000395c
mov ebx, eax
lea r15, [0x140048138]
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140006691
lea r14d, [r8 + 1]
test byte [rcx + 0x1c], r14b
je 0x140006691
cmp byte [rcx + 0x19], 2
jb 0x140006691
lea edx, [r8 + 0x55]
mov r9d, ebx
lea r8, [0x14003ee10]
mov rcx, qword [rcx + 0x10]
call fcn.140001450
jmp 0x140006691
mov qword [r8], rax
test rbx, rbx
jne 0x140005eb7
lea ecx, [rbx + 0x57]
call fcn.14000395c
mov ebx, eax
lea r15, [0x140048138]
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140006691
mov r14d, 1
test byte [rcx + 0x1c], r14b
je 0x140006691
cmp byte [rcx + 0x19], 2
jb 0x140006691
lea edx, [r14 + 0x55]
jmp 0x140005e56
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, str._Volumebab6b806_2c70_4823_9d7c_aab8c6df6ca4
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx esi, word [rbp - 0x48]
shr esi, 1
movzx edi, word [rsp + 0x40]
shr edi, 1
lea eax, [rdi - 2]
lea r12, [0x14003ee10]
lea r15, [0x140048138]
mov r8d, 0x5c
lea r9d, [r8 + 5]
lea r14d, [r8 - 0x5b]
cmp eax, r14d
ja 0x14000604b
lea edx, [r8 - 0x22]
cmp word [rbx + 2], dx
jne 0x14000604b
cmp edi, 3
jb 0x140005f26
cmp word [rbx + 4], r8w
jne 0x14000604b
movzx ecx, word [rbx]
movzx eax, cx
sub ax, r9w
cmp ax, 0x19
jbe 0x140005f43
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x14000604b
mov word [rbp - 8], cx
mov dword [rbp - 6], 0x5c003a
xor edi, edi
mov word [rbp - 2], di
lea r8d, [rdi + 0x32]
lea rdx, [rbp]
lea rcx, [rbp - 8]
call qword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetVolumeNameForVolumeMountPointW]
test eax, eax
jne 0x140005fb6
lea ecx, [rdi + 0x7b]
call fcn.14000395c
mov edi, eax
lea r15, [0x140048138]
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140005faf
test byte [rcx + 0x1c], r14b
je 0x140005faf
cmp byte [rcx + 0x19], 2
jb 0x140005faf
mov edx, 0x57
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x14003ee10]
mov rcx, qword [rcx + 0x10]
call fcn.140003d20
mov eax, edi
jmp 0x140006693
lea rdx, [rbp]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
movzx edi, word [rsp + 0x40]
shr edi, 1
mov r10, qword [0x140048138]
cmp r10, r15
je 0x14000600a
test byte [r10 + 0x1c], r14b
je 0x14000600a
cmp byte [r10 + 0x19], 4
jb 0x14000600a
mov edx, 0x58
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8, r12
mov rcx, qword [r10 + 0x10]
call fcn.140003c04
mov r10, qword [0x140048138]
mov r8d, 0x5c
cmp edi, esi
jae 0x140006054
mov ecx, 0x7b
call fcn.14000395c
mov ebx, eax
cmp r10, r15
je 0x140006691
test byte [r10 + 0x1c], r14b
je 0x140006691
cmp byte [r10 + 0x19], 2
jb 0x140006691
lea edx, [rcx - 0x22]
mov r9, qword [rsp + 0x48]
jmp 0x140006681
mov r10, qword [0x140048138]
jmp 0x140006010
lea eax, [rsi + 1]
mov r9, qword [rsp + 0x48]
cmp edi, eax
ja 0x140006660
cmp edi, esi
jbe 0x140006073
cmp word [r9 + rsi*2], r8w
jne 0x140006660
lea eax, [rsi - 1]
cmp word [r9 + rax*2], 0x7d
jne 0x140006660
mov qword [rbp - 0x80], r9
mov eax, 0x14
mov word [rsp + 0x78], ax
movzx eax, word [rsp + 0x42]
mov word [rsp + 0x7a], ax
lea rdx, str._Volume
lea rcx, [rbp - 0x70]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rdx, [0x14003e580]
lea rcx, [rbp - 0x38]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov r8b, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
xor ebx, ebx
test eax, eax
je 0x14000612b
mov r8b, r14b
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
je 0x14000612b
lea ecx, [rbx + 0x7b]
call fcn.14000395c
mov ebx, eax
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140006691
test byte [rcx + 0x1c], r14b
je 0x140006691
cmp byte [rcx + 0x19], 2
jb 0x140006691
mov edx, 0x5b
mov r9, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
jmp 0x140006685
mov r8b, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x14000614d
lea ecx, [rax + 0x3f]
mov rax, qword [rsp + 0x48]
mov word [rax + 2], cx
movzx eax, word [rbp - 0x70]
add rax, qword [rsp + 0x48]
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x60], 0x4c004c
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x60]
call qword [sym.imp.ntdll.dll_RtlGUIDFromString]
test eax, eax
jns 0x1400061b2
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.14000395c
mov ebx, eax
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140006691
test byte [rcx + 0x1c], r14b
je 0x140006691
cmp byte [rcx + 0x19], 2
jb 0x140006691
mov edx, 0x5c
jmp 0x14000611d
mov r9, r13
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.1400066e4
mov r13d, eax
test eax, eax
jns 0x140006377
mov qword [rsp + 0x68], rbx
movzx esi, word [rsp + 0x40]
mov eax, esi
mov ecx, esi
shr rcx, 1
mov rdi, qword [rsp + 0x48]
mov edx, 0x5c
cmp word [rdi + rcx*2 - 2], dx
je 0x140006310
lea rcx, [rax + 4]
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
mov qword [rsp + 0x60], rax
xor eax, eax
test rbx, rbx
jne 0x140006257
mov esi, 0x8007000e
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140006246
test byte [rcx + 0x1c], r14b
je 0x140006246
cmp byte [rcx + 0x19], 2
jb 0x140006246
lea edx, [rbx + 0x5d]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003d20
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop
mov eax, esi
jmp 0x140006693
mov qword [rsp + 0x58], rbx
mov word [rsp + 0x50], ax
add si, 4
mov word [rsp + 0x52], si
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [0x14003d3d0]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1400090e0
mov ebx, eax
xor esi, esi
test eax, eax
jns 0x1400062df
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x1400062d1
test byte [rcx + 0x1c], r14b
je 0x1400062d1
cmp byte [rcx + 0x19], 2
jb 0x1400062d1
lea edx, [rsi + 0x5e]
mov dword [rsp + 0x20], r13d
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003d20
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x140006691
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov cl, r14b
call fcn.140008bcc
mov ebx, eax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x14000632c
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov cl, r14b
call fcn.140008bcc
mov ebx, eax
xor esi, esi
test ebx, ebx
jns 0x14000637f
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140006367
test byte [rcx + 0x1c], r14b
je 0x140006367
cmp byte [rcx + 0x19], 2
jb 0x140006367
mov edx, 0x5f
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], ebx
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003b7c
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140006377
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r13d
jmp 0x140006693
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x60], esi
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x50]
mov rbx, qword [rsp + 0x68]
mov rcx, rbx
call fcn.1400091cc
mov edi, eax
test eax, eax
jns 0x14000640b
test rbx, rbx
je 0x1400063b6
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, rsi
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x1400063ee
test byte [rcx + 0x1c], r14b
je 0x1400063ee
cmp byte [rcx + 0x19], 2
jb 0x1400063ee
mov edx, 0x60
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], edi
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003b7c
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
nop
test rbx, rbx
je 0x140006377
mov rcx, rbx
jmp 0x140006371
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi + 4]
xor edi, edi
cmp dword [rsi], eax
je 0x14000647a
test rbx, rbx
je 0x140006429
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov ebx, edi
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x140006458
test byte [rcx + 0x1c], r14b
je 0x140006458
cmp byte [rcx + 0x19], 4
jb 0x140006458
mov edx, 0x61
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003b1c
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
test rbx, rbx
je 0x140006470
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 0x80830005
jmp 0x140006693
test rbx, rbx
je 0x14000648b
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, rdi
movzx edx, word [rsp + 0x40]
mov ecx, edx
shr rcx, 1
mov rax, qword [rsp + 0x48]
mov r8d, 0x5c
cmp word [rax + rcx*2 - 2], r8w
jne 0x1400064b5
mov eax, 0xfffe
add dx, ax
mov word [rsp + 0x40], dx
mov qword [rsp + 0x50], rdi
mov r9d, 0x100080
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
mov cl, r14b
call fcn.140008bcc
test eax, eax
jns 0x14000652d
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x14000650d
test byte [rcx + 0x1c], r14b
je 0x14000650d
cmp byte [rcx + 0x19], 2
jb 0x14000650d
mov edx, 0x62
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003b7c
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000651e
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x1400063fa
xor eax, eax
mov qword [rbp - 0x28], rax
mov dword [rbp - 0x20], eax
mov dword [rbp - 8], edi
mov qword [rsp + 0x38], rdi
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0xc
lea rax, [rbp - 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x2d1080
mov rdi, qword [rsp + 0x50]
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_io_l1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x1400065f2
test rdi, rdi
je 0x140006585
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
xor edi, edi
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx r8d, ax
or r8d, 0x80070000
test eax, eax
cmovle r8d, eax
mov rcx, qword [0x140048138]
cmp rcx, r15
je 0x1400065d4
test byte [rcx + 0x1c], r14b
je 0x1400065d4
cmp byte [rcx + 0x19], 2
jb 0x1400065d4
mov edx, 0x63
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r8d
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003b7c
test rdi, rdi
je 0x1400065e3
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x1400063fa
xor r14d, r14d
test rdi, rdi
je 0x140006606
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov edi, r14d
xor eax, eax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov eax, dword [rbp - 0x24]
mov dword [rbp - 0x18], eax
movzx eax, word [rbp - 0x20]
mov word [rbp - 0x14], ax
mov eax, dword [rbp - 0x20]
shr eax, 0x10
mov word [rbp - 0x12], ax
mov r9, qword [rbp - 0x78]
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.1400066e4
mov r13d, eax
test rdi, rdi
je 0x140006651
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x1400063fa
mov ecx, 0x7b
call fcn.14000395c
mov ebx, eax
cmp r10, r15
je 0x140006691
test byte [r10 + 0x1c], r14b
je 0x140006691
cmp byte [r10 + 0x19], 2
jb 0x140006691
lea edx, [rcx - 0x21]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.140003d20
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14003b8a0
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret