Function at 0x14013dda0
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.1401357a0
nop
mov rcx, rax
call fcn.140094f50
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 0x14013de5a
mov ecx, edi
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14013de5a
mov rcx, qword [rbp + 0x30]
call fcn.14021b810
cmp r14, rdi
je 0x14013e34a
mov ecx, 0x4000
call fcn.140223aa8
mov rbx, rax
test rax, rax
je 0x14013e3c1
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 0x14013e021
mov eax, dword [rbx]
cmp eax, 0xa0000003
jne 0x14013df1a
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.14008e230
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 0x14013df83
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013df83
mov rcx, qword [rbp + 0x48]
jmp 0x14013df7e
cmp eax, 0xa000000c
jne 0x14013dfa9
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.14008e230
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 0x14013df83
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013df83
mov rcx, qword [rbp + 0x60]
call fcn.14021b810
mov rcx, qword [rsi]
test rcx, rcx
mov qword [rsi + 0x10], r13
mov qword [rsi + 8], r12
mov qword [rsi], r15
je 0x14013dfa6
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013dfa6
call fcn.14021b810
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 0x14013dfc8
lock inc dword [rcx]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 0x78]
call fcn.140135930
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 0x14013e021
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e021
mov rcx, qword [rbp + 0x78]
call fcn.14021b810
mov rcx, rbx
call fcn.14021b810
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [0x140385b08]
nop
cmp al, 0xfe
jle 0x14013e065
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 0x14013e377
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.14008def0
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 0x14013e0f5
mov eax, edi
lock xadd dword [rdx], eax
cmp eax, 1
jne 0x14013e0f1
mov rcx, qword [rsp + 0x78]
call fcn.14021b810
mov ebx, dword [rsp + 0x40]
mov r8d, 1
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x70]
call fcn.140142270
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14013e12e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e12a
mov rcx, qword [rsp + 0x58]
call fcn.14021b810
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.1401436e0
nop
lea rcx, [rsp + 0x48]
call fcn.1401436d0
test al, al
je 0x14013e335
xor r8d, r8d
lea rdx, [rbp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.140142cc0
mov r15, rax
mov qword [rbp], 4
lea rax, [0x1402cab40]
mov qword [rbp + 8], rax
mov rdx, qword [r15 + 0x10]
add rdx, 4
xor r8d, r8d
lea rcx, [rbp - 0x30]
call fcn.140087250
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.140088600
mov r8, qword [r15 + 0x10]
test r8, r8
je 0x14013e1e1
mov rax, qword [r15 + 8]
lea rdx, [0x14024fdc0]
test rax, rax
cmovne rdx, rax
add r8, r8
lea rcx, [r14 + 8]
call fcn.140240000
and ebx, 0xfffffff7
or ebx, 4
mov dword [rsp + 0x40], ebx
mov rcx, qword [rbp + 0x90]
test rcx, rcx
je 0x14013e212
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e20e
mov rcx, qword [rbp + 0x90]
call fcn.14021b810
mov ebx, dword [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.140094f50
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 0x14013e319
mov r8, rdi
lea rdx, [rbp + 0xc0]
lea rcx, [rbp + 0xa8]
call fcn.14008e230
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 0x14013e2ad
btr ebx, 8
mov dword [rsp + 0x40], ebx
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x14013e2ad
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e2a9
call fcn.14021b810
mov ebx, dword [rsp + 0x40]
test bl, bl
jns 0x14013e2dd
btr ebx, 7
mov dword [rsp + 0x40], ebx
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x14013e2dd
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e2dd
mov rcx, qword [rbp + 0xa8]
call fcn.14021b810
nop
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.140142d90
lea r9, [rbp - 0x60]
mov r8, rax
xor edx, edx
mov rcx, rsi
call fcn.140091c00
nop
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x14013e319
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14013e319
mov rcx, qword [rbp - 0x60]
call fcn.14021b810
nop
mov rax, qword [rbp - 0x30]
test rax, rax
je 0x14013e335
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14013e335
mov rcx, qword [rbp - 0x30]
call fcn.14021b810
nop
lea rcx, [rsp + 0x48]
call fcn.1401423f0
nop
lea rcx, [rsp + 0x70]
call fcn.140142360
mov rax, rsi
mov rcx, qword [rbp + 0x2d0]
xor rcx, rsp
call fcn.140214340
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.14021495c
cmp dword [0x140385b14], 0xffffffff
jne 0x14013e065
lea rcx, [0x140385b10]
call fcn.140139000
mov byte [0x140385b08], 0xff
lea rcx, [0x14024d5b0]
call fcn.14021489c
nop
lea rcx, [0x140385b14]
call fcn.1402148f0
jmp 0x14013e065
call fcn.14010b060
int3