Function at 0x14013dd70
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x2e0]
sub rsp, 0x3e0
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rbp + 0x2d0], rax
mov rax, rdx
mov rsi, rcx
mov qword [rbp + 0x10], rcx
xor r12d, r12d
mov dword [rsp + 0x40], r12d
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov dword [rsp + 0x40], 1
lea rdx, [rbp + 0x30]
mov rcx, rax
call fcn.140135770
nop
mov rcx, rax
call fcn.140094f20
mov rcx, rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x2200000
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea edx, [r12 + 8]
lea r8d, [r12 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r14, rax
lea rdi, [r12 - 1]
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x14013de2a
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013de2a
mov rcx, qword [rbp + 0x30]
call fcn.14021b7f0
cmp r14, rdi
je 0x14013e31a
mov ecx, 0x4000
call fcn.140223a88
mov rbx, rax
test rax, rax
je 0x14013e391
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x38], r12
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 0x14013dff1
mov eax, dword [rbx]
cmp eax, 0xa0000003
jne 0x14013deea
movzx eax, word [rbx + 8]
shr rax, 1
add rax, 8
lea rdx, [rbx + rax*2]
movzx r8d, word [rbx + 0xa]
shr r8, 1
lea rcx, [rbp + 0x48]
call fcn.14008e200
nop
mov r15, qword [rax]
mov r12, qword [rax + 8]
mov r13, qword [rax + 0x10]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov dword [rsp + 0x40], 0x41
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14013df53
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013df53
mov rcx, qword [rbp + 0x48]
jmp 0x14013df4e
cmp eax, 0xa000000c
jne 0x14013df79
movzx eax, word [rbx + 8]
shr rax, 1
add rax, 0xa
lea rdx, [rbx + rax*2]
movzx r8d, word [rbx + 0xa]
shr r8, 1
lea rcx, [rbp + 0x60]
call fcn.14008e200
nop
mov r15, qword [rax]
mov r12, qword [rax + 8]
mov r13, qword [rax + 0x10]
xor ecx, ecx
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov dword [rsp + 0x40], 0x1001
mov rcx, qword [rbp + 0x60]
test rcx, rcx
je 0x14013df53
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013df53
mov rcx, qword [rbp + 0x60]
call fcn.14021b7f0
mov rcx, qword [rsi]
test rcx, rcx
mov qword [rsi + 0x10], r13
mov qword [rsi + 8], r12
mov qword [rsi], r15
je 0x14013df76
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013df76
call fcn.14021b7f0
xor r12d, r12d
mov rcx, qword [rsi]
mov qword [rbp - 0x48], rcx
mov rax, qword [rsi + 8]
mov qword [rbp - 0x40], rax
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x38], rax
test rcx, rcx
je 0x14013df98
lock inc dword [rcx]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x78]
call fcn.140135900
mov rdx, rax
mov rcx, qword [rsi]
mov rax, qword [rax]
mov qword [rsi], rax
mov qword [rdx], rcx
mov rcx, qword [rsi + 8]
mov rax, qword [rdx + 8]
mov qword [rsi + 8], rax
mov qword [rdx + 8], rcx
mov rcx, qword [rsi + 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rsi + 0x10], rax
mov qword [rdx + 0x10], rcx
mov rcx, qword [rbp + 0x78]
test rcx, rcx
je 0x14013dff1
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013dff1
mov rcx, qword [rbp + 0x78]
call fcn.14021b7f0
mov rcx, rbx
call fcn.14021b7f0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x140385b08]
nop
cmp al, 0xfe
jle 0x14013e035
mov ecx, dword [0x140388088]
mov rax, qword gs:[0x58]
mov edx, 0x58
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x140385b14], ecx
jg 0x14013e347
lea rax, str.Volume__a_z__0_9____
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rbp - 0x10], 0x1d
mov qword [rbp - 8], rax
lea rdx, [rbp - 0x10]
lea rcx, [rsp + 0x78]
call fcn.14008dec0
mov ebx, dword [rsp + 0x40]
or ebx, 2
mov dword [rsp + 0x40], ebx
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x78], rdx
mov rcx, qword [rsp + 0x60]
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x60], rax
mov qword [rbp - 0x80], rcx
mov rcx, qword [rsp + 0x68]
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x78], rcx
test rdx, rdx
je 0x14013e0c5
mov eax, edi
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013e0c1
mov rcx, qword [rsp + 0x78]
call fcn.14021b7f0
mov ebx, dword [rsp + 0x40]
mov r8d, 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140142240
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14013e0fe
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e0fa
mov rcx, qword [rsp + 0x58]
call fcn.14021b7f0
mov ebx, dword [rsp + 0x40]
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8, rsi
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x70]
call fcn.1401436b0
nop
lea rcx, [rsp + 0x48]
call fcn.1401436a0
test al, al
je 0x14013e305
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140142c90
mov r15, rax
mov qword [rbp], 4
lea rax, [0x1402cab60]
mov qword [rbp + 8], rax
mov rdx, qword [r15 + 0x10]
add rdx, 4
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140087220
or ebx, 8
mov r14, qword [rbp - 0x28]
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp + 0x20], xmm0
mov rdx, r14
lea rcx, [rbp + 0x20]
call fcn.1400885d0
mov r8, qword [r15 + 0x10]
test r8, r8
je 0x14013e1b1
mov rax, qword [r15 + 8]
lea rdx, [0x14024fde0]
test rax, rax
cmovne rdx, rax
add r8, r8
lea rcx, [r14 + 8]
call fcn.14023ffe0
and ebx, 0xfffffff7
or ebx, 4
mov dword [rsp + 0x40], ebx
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x14013e1e2
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e1de
mov rcx, qword [rbp + 0x90]
call fcn.14021b7f0
mov ebx, dword [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.140094f20
mov rcx, rax
lea r9, [rbp - 0x70]
mov r8d, 0x104
lea rdx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x14013e2e9
mov r8, rdi
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xa8]
call fcn.14008e200
mov rcx, rax
mov rax, qword [rax]
mov qword [rbp - 0x60], rax
mov rax, qword [rcx + 8]
mov qword [rbp - 0x58], rax
mov rax, qword [rcx + 0x10]
mov qword [rbp - 0x50], rax
mov qword [rcx], r12
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
or ebx, 0x280
mov dword [rsp + 0x40], ebx
bt ebx, 8
jae 0x14013e27d
btr ebx, 8
mov dword [rsp + 0x40], ebx
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14013e27d
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e279
call fcn.14021b7f0
mov ebx, dword [rsp + 0x40]
test bl, bl
jns 0x14013e2ad
btr ebx, 7
mov dword [rsp + 0x40], ebx
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14013e2ad
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e2ad
mov rcx, qword [rbp + 0xa8]
call fcn.14021b7f0
nop
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140142d60
lea r9, [rbp - 0x60]
mov r8, rax
xor edx, edx
mov rcx, rsi
call fcn.140091bd0
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14013e2e9
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e2e9
mov rcx, qword [rbp - 0x60]
call fcn.14021b7f0
nop
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14013e305
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013e305
mov rcx, qword [rbp - 0x30]
call fcn.14021b7f0
nop
lea rcx, [rsp + 0x48]
call fcn.1401423c0
nop
lea rcx, [rsp + 0x70]
call fcn.140142330
mov rax, rsi
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140214310
mov rbx, qword [rsp + 0x430]
add rsp, 0x3e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [0x140385b14]
call fcn.14021492c
cmp dword [0x140385b14], 0xffffffff
jne 0x14013e035
lea rcx, [0x140385b10]
call fcn.140138fd0
mov byte [0x140385b08], 0xff
lea rcx, [0x14024d590]
call fcn.14021486c
nop
lea rcx, [0x140385b14]
call fcn.1402148c0
jmp 0x14013e035
call fcn.14010b030
int3