Function at 0x14003673a
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x3b0
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x150], rsi
mov qword [rbp + 0x148], rbx
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x50], r8
mov qword [rbp + 0x58], r9
mov qword [rbp + 0x380], rcx
mov qword [rbp + 0x388], rdx
mov qword [rbp + 0x390], r8
mov qword [rbp + 0x398], r9
mov rax, qword [0x1400e0a40]
xor rax, rbp
mov qword [rbp + 0x360], rax
mov dword [rbp], 0xffffffff
mov dword [rbp + 4], 0xffffffff
mov dword [rbp + 8], 0xffffffff
mov dword [rbp + 0xc], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x68], 0
mov dword [rbp + 0x10], 0
mov qword [rbp + 0x70], 0
mov rax, qword [rbp + 0x390]
test rax, rax
jne 0x1400367e5
mov dword [rbp + 0xc], 1
jmp 0x140036d19
mov rax, qword [rbp + 0x390]
mov rdx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call rdx
mov qword [rbp + 0x78], rax
mov rax, qword [rbp + 0x78]
mov qword [rbp + 0x80], rax
mov rax, qword [rbp + 0x80]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x80]
test rax, rax
jne 0x14003682a
mov dword [rbp + 0xc], 1
jmp 0x140036d19
mov eax, 1
mov edx, 0x104
mov rcx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbp + 0xd8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xd8]
call rax
mov qword [rbp + 0x88], rax
mov rax, qword [rbp + 0x88]
mov qword [rbp + 0x68], rax
mov rax, qword [rbp + 0x68]
test rax, rax
jne 0x140036875
mov dword [rbp + 0xc], 2
jmp 0x140036d19
mov rax, qword [rbp + 0x380]
mov rdx, qword [rbp + 0x60]
mov rcx, qword [rbp + 0x68]
mov qword [rbp + 0xe0], rcx
mov rcx, rax
mov rax, qword [rbp + 0xe0]
mov r8, rax
call fcn.1400353c8
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x14003691d
mov rax, qword [rbp + 0x68]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0x90], rax
mov rax, qword [rbp + 0x90]
test rax, rax
je 0x14003691d
mov qword [rbp + 0x60], 0
mov rax, qword [rbp + 0x68]
mov rdx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov rcx, rax
call rdx
mov qword [rbp + 0xa0], rax
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0xa8]
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0xa8]
test rax, rax
je 0x140036d19
mov rax, qword [rbp + 0x68]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
lea rax, [rbp + 0x158]
mov edx, 0
mov ecx, 0x104
mov qword [rbp + 0xe8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xe8]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0x98], rax
mov rax, qword [rbp + 0x60]
lea rdx, [rbp + 0x158]
mov ecx, 0x103
mov rbx, qword [sym.imp.KERNEL32.dll_GetVolumePathNameA]
mov dword [rbp + 0xf0], ecx
mov rcx, rax
mov eax, dword [rbp + 0xf0]
mov r8d, eax
call rbx
mov dword [rbp + 0x14], eax
mov eax, dword [rbp + 0x14]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x140036a27
mov rax, qword [rbp + 0x380]
lea rdx, str.prvf
lea rcx, str.4060
mov ebx, 0
mov qword [rsp + 0x20], 0
lea rsi, str.CVU00399
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov qword [rbp + 0xf8], rcx
mov rcx, rax
mov rax, qword [rbp + 0xf8]
mov r8, rax
mov r9d, ebx
call fcn.14002d0f9
mov dword [rbp + 0x18], eax
mov rax, qword [rbp + 0x380]
lea rdx, str.GetVolumePathName
mov ecx, 0
lea rbx, str.Could_not_get_the_volume_name
mov dword [rbp + 0x100], ecx
mov rcx, rax
mov eax, dword [rbp + 0x100]
mov r8d, eax
mov r9, rbx
call fcn.14002d4d0
mov dword [rbp + 0x1c], eax
mov dword [rbp + 0xc], 4
jmp 0x140036d19
lea rax, [rbp + 0x158]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xb0], rax
mov rax, qword [rbp + 0xb0]
test rax, rax
jbe 0x140036aa0
lea rax, [rbp + 0x158]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x158]
mov rdx, 0xffffffffffffffff
add rdx, qword [rbp + 0xb8]
add rax, rdx
movsx eax, byte [rax]
movsx rax, al
cmp eax, 0x5c
je 0x140036aa0
lea rax, [rbp + 0x158]
lea rdx, [0x1400afa14]
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcat
mov qword [rbp + 0xc0], rax
lea rax, [rbp + 0x158]
lea rdx, [rbp + 0x25c]
mov ecx, 0x104
mov rbx, qword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointA]
mov dword [rbp + 0x108], ecx
mov rcx, rax
mov eax, dword [rbp + 0x108]
mov r8d, eax
call rbx
mov dword [rbp + 0x20], eax
mov eax, dword [rbp + 0x20]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x140036b7c
mov rax, qword [rbp + 0x380]
lea rdx, str.prvf
lea rcx, str.4060
mov ebx, 0
mov qword [rsp + 0x20], 0
lea rsi, str.CVU00427
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov qword [rbp + 0x110], rcx
mov rcx, rax
mov rax, qword [rbp + 0x110]
mov r8, rax
mov r9d, ebx
call fcn.14002d0f9
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x380]
lea rdx, str.GetVolumeNameForVolumeMountPoint
mov ecx, 0
lea rbx, str.Could_not_get_the_volume_name
mov dword [rbp + 0x118], ecx
mov rcx, rax
mov eax, dword [rbp + 0x118]
mov r8d, eax
mov r9, rbx
call fcn.14002d4d0
mov dword [rbp + 0x2c], eax
mov dword [rbp + 0xc], 4
jmp 0x140036d19
mov rax, qword [rbp + 0x380]
lea rdx, [rbp + 0x25c]
lea rcx, [rbp + 0x70]
mov qword [rbp + 0x120], rcx
mov rcx, rax
mov rax, qword [rbp + 0x120]
mov r8, rax
call fcn.14004bb23
mov dword [rbp + 0x28], eax
mov eax, dword [rbp + 0x28]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
jne 0x140036d19
mov rax, qword [rbp + 0x70]
lea rax, [rax + 4]
mov edx, 0
mov ecx, 0x104
mov qword [rbp + 0x128], rcx
mov rcx, rax
mov rax, qword [rbp + 0x128]
mov r8, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x70]
lea rax, [rax + 4]
mov rdx, qword [rbp + 0x60]
mov ecx, 0x104
mov rbx, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov qword [rbp + 0x130], rcx
mov rcx, rax
mov rax, qword [rbp + 0x130]
mov r8, rax
call rbx
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp + 0x70]
mov rdx, qword [rbp + 0x398]
mov eax, dword [rax + 0x108]
mov dword [rdx + 4], eax
mov rax, qword [rbp + 0x380]
mov rdx, qword [rbp + 0x398]
mov rcx, rax
call fcn.14004b1f7
mov dword [rbp + 0x30], eax
mov eax, dword [rbp + 0x30]
mov dword [rbp + 0x10], eax
mov eax, dword [rbp + 0x10]
test eax, eax
je 0x140036d0a
mov rax, qword [rbp + 0x398]
mov eax, dword [rax + 8]
cmp eax, 1
jne 0x140036d01
mov rax, qword [rbp + 0x380]
lea rdx, str.prvf
lea rcx, str.4060
mov ebx, 0
mov qword [rsp + 0x20], 0
lea rsi, str.CVU00428
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], 0
mov qword [rbp + 0x138], rcx
mov rcx, rax
mov rax, qword [rbp + 0x138]
mov r8, rax
mov r9d, ebx
call fcn.14002d0f9
mov dword [rbp + 0x34], eax
mov rax, qword [rbp + 0x380]
lea rdx, str.sprvsgt_getDiskInfoForPath
mov ecx, 0
lea rbx, str.No_such_disk
mov dword [rbp + 0x140], ecx
mov rcx, rax
mov eax, dword [rbp + 0x140]
mov r8d, eax
mov r9, rbx
call fcn.14002d4d0
mov dword [rbp + 0x38], eax
mov dword [rbp + 0xc], 1
jmp 0x140036d19
mov rax, qword [rbp + 0x398]
mov rdx, qword [rbp + 0x70]
mov qword [rax + 0x28], rdx
mov rax, qword [rbp + 0x60]
test rax, rax
je 0x140036d3a
mov rax, qword [rbp + 0x60]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov qword [rbp + 0x60], 0
mov rax, qword [rbp + 0x68]
test rax, rax
je 0x140036d5b
mov rax, qword [rbp + 0x68]
mov rdx, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rax
call rdx
mov qword [rbp + 0x68], 0
mov eax, dword [rbp + 0xc]
mov dword [rbp + 0x3c], eax
mov rax, qword [rbp + 0x360]
mov qword [rbp + 0x360], 0
xor rax, rbp
mov rcx, rax
call fcn.1400aab50
mov eax, dword [rbp + 0x3c]
mov rbx, qword [rbp + 0x148]
mov rsi, qword [rbp + 0x150]
lea rsp, [rbp + 0x370]
pop rbp
ret