Function at 0x1400061e0
Capabilities:
Get disk information
Get disk information via ioctl

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 [0x1400491f8]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r13, r8
mov qword [rbp - 0x78], r8
mov rbx, rdx
mov rax, qword [0x140049860]
mov qword [rsp + 0x70], rax
xor eax, eax
test r8, r8
jne 0x140006286
lea ecx, [rax + 0x57]
call fcn.140003cb8
mov ebx, eax
lea r15, [0x140049138]
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x140006aad
lea r14d, [r8 + 1]
test byte [rcx + 0x1c], r14b
je 0x140006aad
cmp byte [rcx + 0x19], 2
jb 0x140006aad
lea edx, [r8 + 0x55]
mov r9d, ebx
lea r8, [0x140040e60]
mov rcx, qword [rcx + 0x10]
call fcn.1400014d0
jmp 0x140006aad
mov qword [r8], rax
test rbx, rbx
jne 0x1400062cf
lea ecx, [rbx + 0x57]
call fcn.140003cb8
mov ebx, eax
lea r15, [0x140049138]
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x140006aad
mov r14d, 1
test byte [rcx + 0x1c], r14b
je 0x140006aad
cmp byte [rcx + 0x19], 2
jb 0x140006aad
lea edx, [r14 + 0x55]
jmp 0x14000626e
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, [0x140040e60]
lea r15, [0x140049138]
mov r8d, 0x5c
lea r9d, [r8 + 5]
lea r14d, [r8 - 0x5b]
cmp eax, r14d
ja 0x140006463
lea edx, [r8 - 0x22]
cmp word [rbx + 2], dx
jne 0x140006463
cmp edi, 3
jb 0x14000633e
cmp word [rbx + 4], r8w
jne 0x140006463
movzx ecx, word [rbx]
movzx eax, cx
sub ax, r9w
cmp ax, 0x19
jbe 0x14000635b
lea eax, [rcx - 0x41]
cmp ax, 0x19
ja 0x140006463
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 0x1400063ce
lea ecx, [rdi + 0x7b]
call fcn.140003cb8
mov edi, eax
lea r15, [0x140049138]
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x1400063c7
test byte [rcx + 0x1c], r14b
je 0x1400063c7
cmp byte [rcx + 0x19], 2
jb 0x1400063c7
mov edx, 0x57
mov dword [rsp + 0x20], eax
mov r9, rbx
lea r8, [0x140040e60]
mov rcx, qword [rcx + 0x10]
call fcn.1400040b8
mov eax, edi
jmp 0x140006aaf
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 [0x140049138]
cmp r10, r15
je 0x140006422
test byte [r10 + 0x1c], r14b
je 0x140006422
cmp byte [r10 + 0x19], 4
jb 0x140006422
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.140003f94
mov r10, qword [0x140049138]
mov r8d, 0x5c
cmp edi, esi
jae 0x14000646c
mov ecx, 0x7b
call fcn.140003cb8
mov ebx, eax
cmp r10, r15
je 0x140006aad
test byte [r10 + 0x1c], r14b
je 0x140006aad
cmp byte [r10 + 0x19], 2
jb 0x140006aad
lea edx, [rcx - 0x22]
mov r9, qword [rsp + 0x48]
jmp 0x140006a9d
mov r10, qword [0x140049138]
jmp 0x140006428
lea eax, [rsi + 1]
mov r9, qword [rsp + 0x48]
cmp edi, eax
ja 0x140006a7c
cmp edi, esi
jbe 0x14000648b
cmp word [r9 + rsi*2], r8w
jne 0x140006a7c
lea eax, [rsi - 1]
cmp word [r9 + rax*2], 0x7d
jne 0x140006a7c
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, [0x1400405d0]
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 0x140006543
mov r8b, r14b
lea rdx, [rbp - 0x38]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
je 0x140006543
lea ecx, [rbx + 0x7b]
call fcn.140003cb8
mov ebx, eax
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x140006aad
test byte [rcx + 0x1c], r14b
je 0x140006aad
cmp byte [rcx + 0x19], 2
jb 0x140006aad
mov edx, 0x5b
mov r9, qword [rsp + 0x48]
mov rcx, qword [rcx + 0x10]
jmp 0x140006aa1
mov r8b, r14b
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x140006565
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 0x1400065ca
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov ecx, eax
call fcn.140003cb8
mov ebx, eax
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x140006aad
test byte [rcx + 0x1c], r14b
je 0x140006aad
cmp byte [rcx + 0x19], 2
jb 0x140006aad
mov edx, 0x5c
jmp 0x140006535
mov r9, r13
lea r8, [rbp - 0x18]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x70]
call fcn.140006b08
mov r13d, eax
test eax, eax
jns 0x140006a06
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 0x140006728
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 0x14000666f
mov esi, 0x8007000e
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x14000665e
test byte [rcx + 0x1c], r14b
je 0x14000665e
cmp byte [rcx + 0x19], 2
jb 0x14000665e
lea edx, [rbx + 0x5d]
mov dword [rsp + 0x20], esi
mov r9, rdi
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400040b8
nop
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop
mov eax, esi
jmp 0x140006aaf
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, [0x14003f3f0]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call fcn.1400095f0
mov ebx, eax
xor esi, esi
test eax, eax
jns 0x1400066f7
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.msvcrt.dll_free]
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x1400066e9
test byte [rcx + 0x1c], r14b
je 0x1400066e9
cmp byte [rcx + 0x19], 2
jb 0x1400066e9
lea edx, [rsi + 0x5e]
mov dword [rsp + 0x20], r13d
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.1400040b8
nop
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x140006aad
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x50]
mov cl, r14b
call fcn.1400090d0
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 0x140006744
mov r9d, 0x100080
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x40]
mov cl, r14b
call fcn.1400090d0
mov ebx, eax
xor esi, esi
test ebx, ebx
jns 0x140006792
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x14000677f
test byte [rcx + 0x1c], r14b
je 0x14000677f
cmp byte [rcx + 0x19], 2
jb 0x14000677f
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.140003f04
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140006a06
jmp 0x140006a00
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.1400096e0
mov edi, eax
test eax, eax
jns 0x140006812
test rbx, rbx
je 0x1400067c9
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, rsi
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x140006801
test byte [rcx + 0x1c], r14b
je 0x140006801
cmp byte [rcx + 0x19], 2
jb 0x140006801
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.140003f04
nop
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x1400069f8
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi + 4]
xor edi, edi
cmp dword [rsi], eax
je 0x140006881
test rbx, rbx
je 0x140006830
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov ebx, edi
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x14000685f
test byte [rcx + 0x1c], r14b
je 0x14000685f
cmp byte [rcx + 0x19], 4
jb 0x14000685f
mov edx, 0x61
mov r9, qword [rsp + 0x48]
mov r8, r12
mov rcx, qword [rcx + 0x10]
call fcn.140003e9c
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
test rbx, rbx
je 0x140006877
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, 0x80830005
jmp 0x140006aaf
test rbx, rbx
je 0x140006892
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 0x1400068bc
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.1400090d0
test eax, eax
jns 0x140006934
mov rcx, qword [0x140049138]
cmp rcx, r15
je 0x140006914
test byte [rcx + 0x1c], r14b
je 0x140006914
cmp byte [rcx + 0x19], 2
jb 0x140006914
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.140003f04
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140006925
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x1400069f8
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 0x140006a0e
test rdi, rdi
je 0x140006990
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 [0x140049138]
cmp rcx, r15
je 0x1400069df
test byte [rcx + 0x1c], r14b
je 0x1400069df
cmp byte [rcx + 0x19], 2
jb 0x1400069df
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.140003f04
test rdi, rdi
je 0x1400069ee
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
test rbx, rbx
je 0x140006a06
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, r13d
jmp 0x140006aaf
xor r14d, r14d
test rdi, rdi
je 0x140006a22
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.140006b08
mov r13d, eax
test rdi, rdi
je 0x140006a6d
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
nop
jmp 0x1400069f8
mov ecx, 0x7b
call fcn.140003cb8
mov ebx, eax
cmp r10, r15
je 0x140006aad
test byte [r10 + 0x1c], r14b
je 0x140006aad
cmp byte [r10 + 0x19], 2
jb 0x140006aad
lea edx, [rcx - 0x21]
mov rcx, qword [r10 + 0x10]
mov dword [rsp + 0x20], ebx
mov r8, r12
call fcn.1400040b8
mov eax, ebx
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.14003d760
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x180
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret