Function at 0x1400e6140
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
mov qword [rbp + 0x17], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x59], rax
lea rdx, [0x14012c8f0]
test rdx, 0xffffffffffff0000
jne 0x1400e61b6
movzx ebx, dx
mov ecx, ebx
call fcn.14001df50
test rax, rax
je 0x1400e61c3
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.14001e130
jmp 0x1400e61c3
xor r8d, r8d
lea rcx, [rbp - 0x59]
call fcn.14001e490
nop
xor r14d, r14d
mov word [rbp - 0x51], r14w
mov qword [rbp - 0x4d], r14
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x41], rbx
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x31], r14
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rsi, [rax + 0x18]
mov qword [rbp - 0x29], rsi
mov byte [rbp - 0x21], r14b
mov r15, qword [rbp + 0x67]
mov rax, qword [r15]
cmp dword [rax - 0x10], r14d
jge 0x1400e6225
mov ecx, 0x80070057
call fcn.14001e940
int3
movzx ecx, word [rax]
call fcn.140061d8c
mov word [rbp - 0x51], ax
lea rdx, [rsi - 0x18]
mov r12, qword [rdx]
or edi, 0xffffffff
cmp dword [rdx + 8], 0
je 0x1400e628e
cmp dword [rdx + 0x10], 0
jge 0x1400e6262
cmp dword [rsi - 0xc], 0
jge 0x1400e6258
mov ecx, 0x80070057
call fcn.14001e940
int3
mov dword [rsi - 0x10], r14d
mov word [rsi], r14w
jmp 0x1400e628e
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e6278
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [r12]
mov rcx, r12
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x29], rax
mov rbx, qword [rbp - 0x41]
mov r12d, dword [rbx - 0x10]
lea rsi, [0x14011be8c]
sub rsi, rbx
sar rsi, 1
mov r13d, 1
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
dec eax
or eax, ecx
jge 0x1400e62c4
mov edx, r13d
lea rcx, [rbp - 0x41]
call fcn.14001e8d0
mov rbx, qword [rbp - 0x41]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 2
mov rcx, rbx
add rdx, rdx
cmp rsi, r12
ja 0x1400e62e4
lea r8, [rbx + rsi*2]
call fcn.14005e528
jmp 0x1400e62f0
lea r8, [0x14011be8c]
call fcn.14005e228
cmp dword [rbx - 0xc], r13d
jl 0x1400e68ec
mov dword [rbx - 0x10], r13d
mov word [rbx + 2], r14w
mov rcx, qword [r15]
sub rcx, 0x18
call fcn.14001e5d0
lea rbx, [rax + 0x18]
mov qword [rbp - 0x11], rbx
mov edx, dword [rbx - 0x10]
lea eax, [rdx - 1]
test eax, eax
js 0x1400e68e1
cmp eax, edx
jg 0x1400e68e1
cdqe
cmp word [rbx + rax*2], 0x5c
jne 0x1400e6348
dec edx
mov r8d, r13d
lea rcx, [rbp - 0x11]
call fcn.14001aba0
mov rbx, qword [rbp - 0x11]
mov rax, qword [r15]
movsxd rsi, dword [rax - 0x10]
test esi, esi
jns 0x1400e635e
mov ecx, 0x80070057
call fcn.14001e940
int3
mov ecx, r13d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, esi
or eax, ecx
jge 0x1400e6377
mov edx, esi
mov rcx, r15
call fcn.14001e8d0
lea eax, [rsi + 1]
movsxd rdx, eax
mov rcx, qword [r15]
call fcn.140060c08
mov r11, qword [r15]
cmp esi, dword [r11 - 0xc]
jg 0x1400e68d6
mov dword [r11 - 0x10], esi
mov rax, qword [r15]
mov word [rax + rsi*2], r14w
lea r8, [0x14011c034]
mov rdx, r15
lea rcx, [rbp - 0x19]
call fcn.14000b3f0
nop
lea rsi, [rbx - 0x18]
mov r12, qword [rbp - 0x59]
add r12, 0xffffffffffffffe8
cmp rsi, r12
je 0x1400e6416
cmp dword [r12 + 0x10], 0
jl 0x1400e6406
mov rax, qword [r12]
cmp qword [rsi], rax
jne 0x1400e6406
mov rcx, rsi
call fcn.14001e5d0
mov rbx, rax
mov ecx, edi
lock xadd dword [r12 + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400e63fc
mov rcx, qword [r12]
mov r8, qword [rcx]
mov rdx, r12
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [rbp - 0x59], rax
jmp 0x1400e6416
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rbp - 0x59]
call fcn.14001e490
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x69], rbx
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x1400e6453
mov edx, 0x104
lea rcx, [rbp - 0x69]
call fcn.14001e8d0
mov rbx, qword [rbp - 0x69]
mov r12d, dword [rbx - 0xc]
cmp dword [rbx - 8], 1
jle 0x1400e646d
mov edx, dword [rbx - 0x10]
lea rcx, [rbp - 0x69]
call fcn.14001e7c0
mov rbx, qword [rbp - 0x69]
mov r8d, r12d
mov rdx, rbx
mov rcx, qword [rbp - 0x59]
call qword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov r12d, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.14005e508
test eax, eax
js 0x1400e68cb
cmp eax, dword [rbx - 0xc]
jg 0x1400e68cb
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r14w
test r12d, r12d
je 0x1400e6638
movsxd r12, dword [rbx - 0x10]
test r12d, r12d
jns 0x1400e64c4
mov ecx, 0x80070057
call fcn.14001e940
int3
sub r13d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, r12d
or eax, r13d
jge 0x1400e64e3
mov edx, r12d
lea rcx, [rbp - 0x69]
call fcn.14001e8d0
mov rbx, qword [rbp - 0x69]
lea eax, [r12 + 1]
movsxd rdx, eax
mov rcx, rbx
call fcn.140061904
cmp r12d, dword [rbx - 0xc]
jg 0x1400e662d
mov dword [rbx - 0x10], r12d
mov word [rbx + r12*2], r14w
cmp dword [rbx - 0x10], 0
jl 0x1400e652e
lea rdx, str.device_
mov rcx, rbx
call fcn.14006096c
test rax, rax
je 0x1400e652e
sub rax, rbx
sar rax, 1
test eax, eax
je 0x1400e6638
lea rax, [0x1401250e0]
mov qword [rbp - 9], rax
mov dword [rbp - 1], 0xde
mov dword [rbp + 3], 2
mov r8, qword [rbp - 0x59]
lea rdx, str.Volume__s_is_not_a_physical_volume.
lea rcx, [rbp - 9]
call fcn.14000b5d0
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e6577
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e6596
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, edi
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x1400e65b0
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e65ce
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e65ec
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e660b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1400e6626
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor al, al
jmp 0x1400e68f7
mov ecx, 0x80070057
call fcn.14001e940
nop
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e6652
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ebx, eax
mov dword [rbp - 0x4d], eax
cmp eax, 3
je 0x1400e674f
cmp eax, 6
je 0x1400e674f
cmp eax, 2
je 0x1400e674f
cmp byte [0x140178474], 0
jne 0x1400e66b6
lea rax, str.CVolumeManagerBase::GetBasicVolumeInfo
mov qword [rbp + 7], rax
mov dword [rbp + 0xf], 0xe9
mov dword [rbp + 0x13], 2
mov r9, qword [rbp - 0x59]
mov r8d, ebx
lea rdx, str.Unsupported_drive_type__d_for_volume__s_n
lea rcx, [rbp + 7]
call fcn.14000b5d0
nop
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e66d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, edi
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x1400e66ef
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e670d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e672b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x59]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e674a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
jmp 0x1400e660b
mov edx, eax
movzx ecx, word [rbp - 0x51]
call fcn.1400c3fc0
test al, al
jne 0x1400e676a
lea rcx, [rbp - 0x59]
call fcn.1400e5780
mov ebx, dword [rbp - 0x4d]
mov rdx, qword [rbp - 0x59]
lea r13, [rdx - 0x18]
mov r14, qword [rbp + 0x6f]
mov r12, qword [r14]
sub r12, 0x18
cmp r13, r12
je 0x1400e67d4
cmp dword [r12 + 0x10], 0
jl 0x1400e67c8
mov rax, qword [r12]
cmp qword [r13], rax
jne 0x1400e67c8
mov rcx, r13
call fcn.14001e5d0
mov rbx, rax
mov ecx, edi
lock xadd dword [r12 + 0x10], ecx
dec ecx
test ecx, ecx
jg 0x1400e67bc
mov rcx, qword [r12]
mov r8, qword [rcx]
mov rdx, r12
call qword [r8 + 8]
lea rax, [rbx + 0x18]
mov qword [r14], rax
mov ebx, dword [rbp - 0x4d]
jmp 0x1400e67d4
mov r8d, dword [rdx - 0x10]
mov rcx, r14
call fcn.14001e490
movzx eax, word [rbp - 0x51]
mov word [r14 + 8], ax
mov dword [r14 + 0xc], ebx
mov eax, dword [rbp - 0x49]
mov dword [r14 + 0x10], eax
lea rcx, [r14 + 0x18]
lea rdx, [rbp - 0x41]
call fcn.14001deb0
mov r11, qword [rbp - 0x39]
mov qword [r14 + 0x20], r11
mov rax, qword [rbp - 0x31]
mov qword [r14 + 0x28], rax
lea rcx, [r14 + 0x30]
lea rdx, [rbp - 0x29]
call fcn.14001deb0
movzx r11d, byte [rbp - 0x21]
mov byte [r14 + 0x38], r11b
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e683a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov eax, edi
lock xadd dword [rsi + 0x10], eax
dec eax
test eax, eax
jg 0x1400e6854
mov rcx, qword [rsi]
mov rax, qword [rcx]
mov rdx, rsi
call qword [rax + 8]
nop
mov rdx, qword [rbp - 0x29]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e6872
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp - 0x41]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1400e6890
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov eax, edi
lock xadd dword [r13 + 0x10], eax
dec eax
test eax, eax
jg 0x1400e68ac
mov rcx, qword [r13]
mov rax, qword [rcx]
mov rdx, r13
call qword [rax + 8]
nop
mov rdx, qword [r15]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x1400e68c7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov al, 1
jmp 0x1400e68f7
mov ecx, 0x80070057
call fcn.14001e940
nop
mov ecx, 0x80070057
call fcn.14001e940
int3
mov ecx, 0x80070057
call fcn.14001e940
nop
mov ecx, 0x80070057
call fcn.14001e940
nop
mov rbx, qword [rsp + 0x100]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret