Function at 0x1400d2840
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1401afaf0
sub rsp, rax
mov rax, qword [0x14020cc58]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r13d, ecx
mov dword [rsp + 0x30], ecx
call fcn.1400b4140
xor esi, esi
xor ecx, ecx
mov dword [rsp + 0x4c], r13d
mov ebx, esi
mov dword [rsp + 0x5c], eax
mov r14, rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rsi
mov dword [rsp + 0x48], ebx
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
mov ecx, eax
mov dword [rsp + 0x58], eax
or ecx, 1
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
lea rcx, [rsp + 0x180]
call fcn.140177280
mov r15, qword [0x14020e090]
test r15, r15
je 0x1400d2a83
nop
nop
nop
movsx eax, byte [r15 + 0x28]
mov r9, qword [r15 + 0x10]
mov r8, qword [r15 + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [r15 + 0x18]
lea rdx, str.config_volume:__s___s___s___d_n
mov ecx, 0xffff00ff
mov qword [rsp + 0x20], rax
call fcn.1400b3fe0
mov rbx, qword [r15 + 8]
cmp byte [rbx], 0
mov qword [rsp + 0x5e0], rbx
jne 0x1400d2991
lea rcx, [rsp + 0x3c0]
call fcn.140177280
mov rdx, qword [r15 + 0x10]
lea rcx, [rsp + 0x3c0]
call fcn.14017e4c0
mov rcx, qword [rsp + 0x3c8]
lea rdx, [rsp + 0xc20]
mov r8d, 0x104
call qword [fcn.1400d8de0]
test eax, eax
je 0x1400d2979
lea rdx, [rsp + 0xc20]
lea rcx, [rsp + 0x180]
call fcn.140178350
mov rbx, qword [rsp + 0x188]
jmp 0x1400d297c
mov rbx, rsi
lea rcx, [rsp + 0x3c0]
mov qword [rsp + 0x5e0], rbx
call fcn.14017d580
test rbx, rbx
je 0x1400d2a6e
movsx r13d, byte [r15 + 0x29]
movsx r12d, byte [r15 + 0x2a]
mov rbp, qword [r15 + 0x20]
movsx esi, byte [r15 + 0x28]
mov rdi, qword [r15 + 0x18]
mov rbx, qword [r15 + 0x10]
mov ecx, 0x40
call fcn.1400cf700
mov rcx, rbx
mov qword [rsp + 0x50], rax
call fcn.1401767d0
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x5e0]
mov qword [rbx + 8], rax
call fcn.1401767d0
mov rcx, rdi
mov qword [rbx + 0x10], rax
call fcn.14016dcf0
mov rcx, qword [rsp + 0x5e0]
mov qword [rbx + 0x18], rax
call fcn.1400dc5d0
mov rcx, rbp
test eax, eax
mov byte [rbx + 0x38], sil
setne al
mov byte [rbx + 0x20], al
call fcn.14016dcf0
mov r9, qword [rbx + 8]
mov r8, qword [rbx + 0x10]
mov qword [rbx + 0x28], rax
mov rax, qword [rbx + 0x18]
lea rdx, str.add_volume:__s___s___s_n
xor esi, esi
mov ecx, 0xffffff00
mov qword [rsp + 0x20], rax
mov byte [rbx + 0x30], r12b
mov dword [rbx + 0x34], r13d
mov dword [rbx + 0x3c], esi
mov byte [rbx + 0x39], 1
call fcn.1400b3fe0
test r14, r14
je 0x1400d2a59
mov rax, qword [rsp + 0x40]
mov qword [rax], rbx
jmp 0x1400d2a61
mov r14, rbx
mov qword [rsp + 0x38], rbx
add dword [rsp + 0x48], 1
mov qword [rbx], rsi
mov qword [rsp + 0x40], rbx
mov r15, qword [r15]
test r15, r15
jne 0x1400d28e0
mov ebx, dword [rsp + 0x48]
mov r13d, dword [rsp + 0x30]
lea rcx, [rsp + 0x180]
call fcn.14017d580
lea rcx, [rsp + 0x800]
mov edx, 0x104
call qword [0x140203aa8]
lea rcx, str.VEH__d_n
mov rdx, rax
mov r12, rax
call fcn.1400b3fb0
cmp r12, 0xffffffffffffffff
lea r15, [0x1401b0f62]
mov ebp, 0x41
je 0x1400d2ec2
lea rcx, [rsp + 0x60]
call fcn.140177280
lea rcx, [rsp + 0x2a0]
call fcn.140177280
jmp 0x1400d2af2
xor esi, esi
lea rdx, [rsp + 0x800]
lea rcx, [rsp + 0x60]
call fcn.140178350
mov rcx, qword [rsp + 0x68]
call fcn.1400d7f00
mov rdx, qword [rsp + 0x68]
lea rcx, str.volume__s:_drive_type__d_n
mov r8d, eax
mov edi, eax
call fcn.1400b3fb0
cmp edi, 3
je 0x1400d2b37
cmp edi, 2
je 0x1400d2b37
cmp edi, 6
jne 0x1400d2e7a
lea r9, [rsp + 0x30]
lea rcx, [rsp + 0x800]
xor r8d, r8d
xor edx, edx
call fcn.1400d7690
test eax, eax
jne 0x1400d2e7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetVolumePathNamesForVolumeName__d_n
mov edx, eax
mov ebx, eax
call fcn.1400b3fb0
cmp ebx, 0xea
jne 0x1400d2c62
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1400d2e7a
mov rcx, rax
add rcx, rcx
call fcn.1400cf700
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x50]
lea rcx, [rsp + 0x800]
mov rdx, rax
mov rsi, rax
call fcn.1400d7690
test eax, eax
je 0x1400d2c41
cmp word [rsi], 0
mov rbx, rsi
je 0x1400d2c55
xor r14d, r14d
nop
nop
nop
lea rcx, [rsp + 0x2a0]
mov rdx, rbx
call fcn.140178350
mov rdx, qword [rsp + 0x2a8]
lea rcx, str.GetVolumePathNamesForVolumeName__s_n
call fcn.1400b3fb0
mov r9, qword [rsp + 0x2a8]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
mov edx, edi
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r15
call fcn.1400d24d0
cmp word [rbx], r14w
je 0x1400d2c2a
nop
add rbx, 2
cmp word [rbx], r14w
jne 0x1400d2c20
add rbx, 2
cmp word [rbx], r14w
jne 0x1400d2bd0
mov rcx, rsi
call fcn.1400cf780
jmp 0x1400d2e7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetVolumePathNamesForVolumeName2__d_n
mov edx, eax
call fcn.1400b3fb0
mov rcx, rsi
call fcn.1400cf780
jmp 0x1400d2e7a
lea rcx, [rsp + 0x180]
call fcn.140177280
mov ebx, ebp
lea rdx, [rsp + 0x5e0]
lea rcx, str.GetVolumeNameForVolumeMountPoint__S_n
mov word [rsp + 0x5e0], bx
mov word [rsp + 0x5e2], 0x3a
mov word [rsp + 0x5e4], 0x5c
mov word [rsp + 0x5e6], 0
call fcn.1400b3fb0
lea rdx, [rsp + 0x5f0]
lea rcx, [rsp + 0x5e0]
mov r8d, 0x104
call qword [fcn.1400d8de0]
test eax, eax
je 0x1400d2d0f
lea rdx, [rsp + 0x5f0]
lea rcx, [rsp + 0x180]
call fcn.140178350
mov r8, qword [rsp + 0x188]
mov rdx, qword [rsp + 0x68]
lea rcx, str.GetVolumeNameForVolumeMountPoint_ok__s__s_n
call fcn.1400b3fb0
mov rdx, qword [rsp + 0x188]
mov rcx, qword [rsp + 0x68]
call fcn.14016ef20
test eax, eax
je 0x1400d2d20
add ebx, 1
cmp ebx, 0x5a
jle 0x1400d2c71
jmp 0x1400d2e6d
lea rdx, [rsp + 0x5e0]
lea rcx, [rsp + 0x2a0]
call fcn.140178350
mov r9, qword [rsp + 0x2a8]
mov r8, qword [rsp + 0x188]
lea rcx, [rsp + 0x38]
mov edx, edi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
call fcn.1400d24d0
cmp edi, 2
mov word [rsp + 0x5f0], bx
mov word [rsp + 0x5f2], 0x3a
mov word [rsp + 0x5f4], 0x5c
jne 0x1400d2d88
cmp byte [0x14020dd86], 0
je 0x1400d2e6d
lea rdx, [rsp + 0x5f6]
lea rcx, [rsp + 0x800]
mov r8d, 0x101
call qword [0x140203ac8]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x1400d2e6d
nop
nop
nop
nop
lea rdx, [rsp + 0x5f0]
lea rcx, [rsp + 0x2a0]
call fcn.140178350
lea rdx, [rsp + 0x800]
lea rcx, [rsp + 0x5f0]
mov r8d, 0x104
call qword [fcn.1400d8de0]
test eax, eax
je 0x1400d2e45
lea rdx, [rsp + 0x800]
lea rcx, [rsp + 0x60]
call fcn.140178350
mov rcx, qword [rsp + 0x2a8]
call fcn.1400d7f00
cmp eax, 3
je 0x1400d2e23
cmp eax, 2
je 0x1400d2e23
cmp eax, 6
jne 0x1400d2e45
mov r9, qword [rsp + 0x2a8]
mov r8, qword [rsp + 0x68]
lea rcx, [rsp + 0x38]
mov edx, eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], r15
call fcn.1400d24d0
lea rdx, [rsp + 0x5f6]
mov r8d, 0x101
mov rcx, rbx
call qword [fcn.1400d8de0]
test eax, eax
jne 0x1400d2dc0
mov rcx, rbx
call qword [fcn.1400d8de0]
lea rcx, [rsp + 0x180]
call fcn.14017d580
lea rdx, [rsp + 0x800]
mov r8d, 0x104
mov rcx, r12
call qword [fcn.1400d8de0]
test eax, eax
jne 0x1400d2af0
lea rcx, [rsp + 0x2a0]
call fcn.14017d580
lea rcx, [rsp + 0x60]
call fcn.14017d580
mov rcx, r12
call qword [fcn.1400d8de0]
mov r14, qword [rsp + 0x38]
mov ebx, dword [rsp + 0x48]
cmp byte [reloc.WS2_32.dll_accept], 0
je 0x1400d31fa
lea rcx, [rsp + 0x180]
call fcn.140177280
lea rcx, [rsp + 0x3c0]
call fcn.140177280
lea rcx, [rsp + 0x5f0]
call fcn.140177280
lea rcx, [rsp + 0x800]
call fcn.140177280
mov byte [rsp + 0x31], 0x3a
mov byte [rsp + 0x32], 0
lea rdi, [0x1401d000c]
nop
nop
nop
lea rcx, [rsp + 0x30]
mov byte [rsp + 0x30], bpl
call fcn.1400d7f00
cmp eax, 3
mov ebx, eax
je 0x1400d2f44
cmp eax, 2
je 0x1400d2f44
cmp eax, 6
jne 0x1400d31b1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x3c0]
call fcn.14017e5e0
mov rcx, qword [rsp + 0x3c8]
lea rdx, [rsp + 0xe30]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1400d31b1
mov r8, qword [rsp + 0x3c8]
mov eax, eax
lea r9, [rsp + 0xe30]
lea rcx, str.QueryDosDevice__d__S__S_n
mov edx, ebx
mov word [rsp + rax*2 + 0xe30], 0
call fcn.1400b3fb0
lea rdx, [rsp + 0xe30]
lea rcx, [rsp + 0x5f0]
call fcn.140178400
mov rax, qword [rsp + 0x5f8]
mov r11, rdi
mov rdx, rax
mov cl, 0x5c
sub rdx, rdi
nop
cmp byte [rdx + r11], cl
jne 0x1400d306e
movzx ecx, byte [r11 + 1]
add r11, 1
test cl, cl
jne 0x1400d2fd0
mov rax, qword [rsp + 0x3c8]
lea r9, [rsp + 0xc20]
lea rdx, [rsp + 0xe30]
movzx ecx, word [rax]
mov r8d, 0x104
mov dword [rsp + 0x20], 0x104
call fcn.1400dbe00
test eax, eax
je 0x1400d31b1
lea rdx, [rsp + 0xe30]
lea rcx, [rsp + 0x180]
call fcn.140178350
lea rdx, [rsp + 0xc20]
lea rcx, [rsp + 0x800]
call fcn.140178050
mov rax, qword [rsp + 0x808]
mov r8, qword [rsp + 0x188]
mov dword [rsp + 0x28], 0
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
jmp 0x1400d31a5
lea rdx, str.DeviceHarddiskVolume
mov cl, 0x5c
sub rdx, rax
nop
nop
cmp byte [rax], cl
jne 0x1400d3096
movzx ecx, byte [rdx + rax + 1]
add rax, 1
test cl, cl
jne 0x1400d3080
jmp 0x1400d31b1
lea rdx, [rsp + 0xc20]
lea rcx, [rsp + 0xa10]
mov r8d, 0x104
mov word [rsp + 0xa10], bp
mov word [rsp + 0xa12], 0x3a
mov word [rsp + 0xa14], 0x5c
mov word [rsp + 0xa16], 0
call qword [fcn.1400d8de0]
test eax, eax
je 0x1400d3133
lea rdx, [rsp + 0xc20]
lea rcx, [rsp + 0x180]
call fcn.140178350
lea r8, [rsp + 0xc20]
lea rdx, [rsp + 0xa10]
lea rcx, str._S_GetVolumeNameForVolumeMountPoint__S__d_n
mov r9d, ebx
call fcn.1400b3fb0
lea rdx, [rsp + 0xa10]
lea rcx, str._S_is_ntfs_n
call fcn.1400b3fb0
mov r8, qword [rsp + 0x188]
lea r9, [rsp + 0x30]
jmp 0x1400d3198
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0xa10]
lea rcx, str._S_GetVolumeNameForVolumeMountPoint_FAILED__d_n
mov r8d, eax
call fcn.1400b3fb0
mov byte [rsp + 0x2a0], bpl
mov byte [rsp + 0x2a1], 0x3a
mov byte [rsp + 0x2a2], 0
mov byte [rsp + 0x60], 0x5c
mov byte [rsp + 0x61], 0x5c
mov byte [rsp + 0x62], 0x2e
mov byte [rsp + 0x63], 0x5c
mov byte [rsp + 0x64], bpl
mov byte [rsp + 0x65], 0x3a
mov byte [rsp + 0x66], 0
lea r9, [rsp + 0x2a0]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x38]
mov edx, ebx
call fcn.1400d24d0
add ebp, 1
cmp ebp, 0x5a
jle 0x1400d2f20
lea rcx, [rsp + 0x800]
call fcn.14017d580
lea rcx, [rsp + 0x5f0]
call fcn.14017d580
lea rcx, [rsp + 0x3c0]
call fcn.14017d580
lea rcx, [rsp + 0x180]
call fcn.14017d580
mov r14, qword [rsp + 0x38]
mov ebx, dword [rsp + 0x48]
test ebx, ebx
je 0x1400d33f9
movsxd rcx, ebx
shl rcx, 3
call fcn.1400cf700
cmp byte [reloc.WS2_32.dll_accept], 0
mov r12, rax
je 0x1400d32d7
test r14, r14
mov r9, r14
je 0x1400d32d7
nop
nop
cmp byte [r9 + 0x20], 0
jne 0x1400d32c5
mov rcx, qword [r9 + 8]
cmp byte [rcx], 0
je 0x1400d32c5
cmp byte [rcx + 1], 0x3a
jne 0x1400d32c5
cmp byte [rcx + 2], 0
jne 0x1400d32c5
mov r8, r14
cmp r8, r9
je 0x1400d32bd
cmp byte [r8 + 0x20], 0
je 0x1400d32bd
mov rcx, qword [r9 + 0x10]
mov rax, qword [r8 + 0x10]
movzx edx, byte [rcx]
cmp dl, byte [rax]
jne 0x1400d3285
test dl, dl
je 0x1400d328f
mov dl, byte [rcx + 1]
add rcx, 1
add rax, 1
cmp dl, byte [rax]
je 0x1400d3272
movzx eax, byte [rax]
movzx ecx, byte [rcx]
cmp ecx, eax
jne 0x1400d32bd
mov rcx, qword [r9 + 0x18]
mov rax, qword [r8 + 0x18]
movzx edx, byte [rcx]
cmp dl, byte [rax]
jne 0x1400d32b3
nop
test dl, dl
je 0x1400d3300
mov dl, byte [rcx + 1]
add rcx, 1
add rax, 1
cmp dl, byte [rax]
je 0x1400d32a0
movzx eax, byte [rax]
movzx ecx, byte [rcx]
sub ecx, eax
je 0x1400d3300
mov r8, qword [r8]
test r8, r8
jne 0x1400d3257
xor eax, eax
mov byte [r9 + 0x21], al
mov r9, qword [r9]
test r9, r9
jne 0x1400d3230
xor r15d, r15d
test r14, r14
mov esi, r15d
je 0x1400d337c
mov rbx, r12
nop
nop
test r13d, r13d
mov rdi, qword [r14]
je 0x1400d3307
cmp byte [r14 + 0x38], r15b
je 0x1400d3338
jmp 0x1400d330d
mov eax, 1
jmp 0x1400d32c7
cmp byte [r14 + 0x38], r15b
je 0x1400d3366
cmp byte [reloc.WS2_32.dll_accept], r15b
je 0x1400d331c
cmp byte [r14 + 0x21], r15b
jne 0x1400d3338
cmp byte [reloc.WS2_32.dll_accept], r15b
je 0x1400d3366
cmp byte [r14 + 0x20], r15b
jne 0x1400d3366
mov rcx, qword [r14 + 0x10]
call fcn.1400dc5d0
test eax, eax
jne 0x1400d3366
mov rcx, qword [r14 + 8]
call fcn.1400cf780
mov rcx, qword [r14 + 0x10]
call fcn.1400cf780
mov rcx, qword [r14 + 0x18]
call fcn.1400cf780
mov rcx, qword [r14 + 0x28]
call fcn.1400cf780
mov rcx, r14
call fcn.1400cf780
jmp 0x1400d3370
mov qword [rbx], r14
add esi, 1
add rbx, 8
test rdi, rdi
mov r14, rdi
jne 0x1400d32f0
lea r8, [0x1400d2750]
mov edx, esi
mov rcx, r12
call fcn.1400e2e20
test esi, esi
mov r14, r15
mov rcx, r15
mov rbx, r15
movsxd rdi, esi
jle 0x1400d33f1
nop
test r14, r14
je 0x1400d33ae
mov rax, qword [r12 + rbx*8]
mov qword [rcx], rax
jmp 0x1400d33b2
mov r14, qword [r12 + rbx*8]
mov r8, qword [r12 + rbx*8]
lea rdx, str.volume:__s___s___s_found__d_n
mov ecx, 0xffffff00
movsx eax, byte [r8 + 0x20]
mov r9, qword [r8 + 8]
mov dword [rsp + 0x28], eax
mov rax, qword [r8 + 0x18]
mov r8, qword [r8 + 0x10]
mov qword [rsp + 0x20], rax
call fcn.1400b3fe0
mov rcx, qword [r12 + rbx*8]
add rbx, 1
mov qword [rcx], r15
cmp rbx, rdi
jl 0x1400d33a0
mov rcx, r12
call fcn.1400cf780
mov ecx, dword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.1400b4140
lea rcx, str.ntfs_volume_create_list__f_seconds_n
sub eax, dword [rsp + 0x5c]
mov edx, eax
call fcn.1400b3fb0
mov rax, r14
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1401a8fb0
lea r11, [rsp + 0x1050]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret