Function at 0x140069460
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x230]
sub rsp, 0x330
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rsp + 0x370], rbx
mov rax, qword [0x1402f1140]
xor rax, rsp
mov qword [rbp + 0x220], rax
mov rax, rdx
mov rsi, rcx
mov qword [rbp - 0x30], rcx
xor r15d, r15d
mov dword [rsp + 0x4c], r15d
lea rcx, [0x140172000]
mov qword [rsi], rcx
mov dword [rsp + 0x4c], 1
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400631a0
nop
mov rcx, rax
call fcn.140021850
mov rcx, rax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r15 + 8]
lea r8d, [r15 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
mov rcx, qword [rsp + 0x68]
mov edx, dword [rcx]
or edi, 0xffffffff
test edx, edx
je 0x140069520
cmp edx, edi
je 0x14006952e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14006952e
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
cmp r14, 0xffffffffffffffff
je 0x1400698c7
mov ecx, 0x4000
call fcn.14010f5fc
mov rbx, rax
test rax, rax
jne 0x14006954f
call fcn.140030d60
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x4000
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900a8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140069736
mov eax, dword [rbx]
cmp eax, 0xa0000003
jne 0x1400695eb
movzx r8d, word [rbx + 0xa]
shr r8d, 1
movzx eax, word [rbx + 8]
shr rax, 1
add rax, 8
lea rdx, [rbx + rax*2]
lea rcx, [rsp + 0x70]
call fcn.140005580
mov rdx, rax
mov rcx, qword [rsi]
mov qword [rbp - 0x28], rcx
mov rax, qword [rax]
mov qword [rsi], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x140069646
cmp eax, 0xffffffff
je 0x140069655
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140069655
mov rcx, qword [rsp + 0x70]
jmp 0x140069646
cmp eax, 0xa000000c
jne 0x140069655
movzx r8d, word [rbx + 0xa]
shr r8d, 1
movzx eax, word [rbx + 8]
shr rax, 1
add rax, 0xa
lea rdx, [rbx + rax*2]
lea rcx, [rsp + 0x78]
call fcn.140005580
mov rdx, rax
mov rcx, qword [rsi]
mov qword [rbp - 0x20], rcx
mov rax, qword [rax]
mov qword [rsi], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140069646
cmp eax, 0xffffffff
je 0x140069655
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140069655
mov rcx, qword [rsp + 0x78]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cd80
mov rcx, qword [rsi]
cmp dword [rcx + 4], 4
jle 0x140069736
mov rax, qword [rcx + 0x10]
cmp word [rcx + rax], 0x5c
jne 0x140069736
cmp word [rax + rcx + 4], 0x3f
jne 0x140069736
cmp word [rax + rcx + 6], 0x5c
jne 0x140069736
mov r9d, edi
mov r8d, 4
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.14001c130
mov rdx, rax
mov rcx, qword [rsi]
mov qword [rbp - 0x18], rcx
mov rax, qword [rax]
mov qword [rsi], rax
mov qword [rdx], rcx
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400696cf
cmp eax, 0xffffffff
je 0x1400696dd
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400696dd
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
mov dword [rbp - 0x70], 3
lea rax, [0x140188b60]
mov qword [rbp - 0x68], rax
mov r8d, 3
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14001bb10
movaps xmm0, xmmword [rbp - 0x70]
movdqa xmmword [rbp - 0x70], xmm0
mov rdx, rax
lea rcx, [rbp - 0x70]
call fcn.140017050
test al, al
je 0x140069736
mov eax, 0x5c
mov word [rsp + 0x48], ax
movzx r9d, ax
xor edx, edx
lea r8d, [rax - 0x59]
mov rcx, rsi
call fcn.14001edb0
mov rcx, rbx
call fcn.14010e6f8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x141476b38], 0xfffffffe
jle 0x140069755
call fcn.140068ac0
mov edx, 0x1d
lea rcx, str.Volume__a_z__0_9____
call fcn.14001a850
mov qword [rsp + 0x58], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x40]
call fcn.14003a140
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400697a1
cmp eax, 0xffffffff
je 0x1400697af
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400697af
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1400401a0
test eax, eax
jne 0x1400698bd
mov dword [rbp - 0x58], 4
lea rax, [0x140188b88]
mov qword [rbp - 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.1400418b0
mov r8d, eax
lea rdx, [rbp]
mov rcx, rsi
call fcn.14001bb10
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rax
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x48]
call fcn.140066250
nop
lea rcx, [rsp + 0x60]
call fcn.140021850
mov rcx, rax
lea r9, [rbp - 0x60]
mov r8d, 0x104
lea rdx, [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x140069890
mov r8d, edi
lea rdx, [rbp + 0x10]
lea rcx, [rbp - 0x78]
call fcn.140005580
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1400418b0
mov r8d, eax
mov r9, rbx
xor edx, edx
mov rcx, rsi
call fcn.14001ed00
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x140069881
cmp eax, 0xffffffff
je 0x140069890
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140069890
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400698ae
cmp eax, 0xffffffff
je 0x1400698bd
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400698bd
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cd80
nop
lea rcx, [rsp + 0x40]
call fcn.14003a990
mov rax, rsi
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.14010a180
mov rbx, qword [rsp + 0x370]
add rsp, 0x330
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret