Function at 0x1418ca980
Capabilities:
Get disk information

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x350], rbx
mov rax, qword [0x1419e93b0]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov rax, rdx
mov rsi, rcx
mov qword [rbp - 0x48], rcx
xor r15d, r15d
mov dword [rsp + 0x48], r15d
lea rcx, [0x1400367e8]
mov qword [rsi], rcx
mov dword [rsp + 0x48], 1
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.1418c47d0
nop
mov rcx, rax
call fcn.14188e360
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 + 0x60]
mov edx, dword [rcx]
or edi, 0xffffffff
test edx, edx
je 0x1418caa40
cmp edx, edi
je 0x1418caa4e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1418caa4e
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
cmp r14, 0xffffffffffffffff
je 0x1418cad77
mov ecx, 0x4000
call fcn.14198d97c
mov rbx, rax
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x4c]
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 0x1418cabe6
mov eax, dword [rbx]
cmp eax, 0xa0000003
jne 0x1418cab01
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 + 0x68]
call fcn.1418752c0
mov rdx, rax
mov rcx, qword [rsi]
mov qword [rbp - 0x40], rcx
mov rax, qword [rax]
mov qword [rsi], rax
mov qword [rdx], rcx
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1418cab5c
cmp eax, 0xffffffff
je 0x1418cab6b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1418cab6b
mov rcx, qword [rsp + 0x68]
jmp 0x1418cab5c
cmp eax, 0xa000000c
jne 0x1418cab6b
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 + 0x70]
call fcn.1418752c0
mov rdx, rax
mov rcx, qword [rsi]
mov qword [rbp - 0x38], 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 0x1418cab5c
cmp eax, 0xffffffff
je 0x1418cab6b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1418cab6b
mov rcx, qword [rsp + 0x70]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.1418993e0
mov rcx, qword [rsi]
cmp dword [rcx + 4], 4
jle 0x1418cabe6
mov rax, qword [rcx + 0x10]
cmp word [rcx + rax], 0x5c
jne 0x1418cabe6
cmp word [rax + rcx + 4], 0x3f
jne 0x1418cabe6
cmp word [rax + rcx + 6], 0x5c
jne 0x1418cabe6
mov r9d, edi
mov r8d, 4
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.141888d80
mov rdx, rax
mov rcx, qword [rsi]
mov qword [rbp - 0x30], 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 0x1418cabd8
cmp eax, 0xffffffff
je 0x1418cabe6
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1418cabe6
mov rcx, qword [rsp + 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
mov rcx, rbx
call fcn.14198ca40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x1419ed408], 0xfffffffe
jle 0x1418cac05
call fcn.1418c9ff0
mov edx, 0x1d
lea rcx, [0x14004bdd8]
call fcn.141887da0
mov qword [rsp + 0x50], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x40]
call fcn.1418cc7c0
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1418cac51
cmp eax, 0xffffffff
je 0x1418cac5f
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1418cac5f
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
xor r9d, r9d
xor r8d, r8d
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.1418d26b0
test eax, eax
jne 0x1418cad6d
mov dword [rbp - 0x70], 4
lea rax, [0x14004bdf8]
mov qword [rbp - 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1418d3c90
mov r8d, eax
lea rdx, [rbp - 0x28]
mov rcx, rsi
call fcn.1418888b0
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x60]
call fcn.1418c77b0
nop
lea rcx, [rsp + 0x58]
call fcn.14188e360
mov rcx, rax
lea r9, [rbp - 0x78]
mov r8d, 0x104
lea rdx, [rbp - 0x10]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x1418cad40
mov r8d, edi
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x80]
call fcn.1418752c0
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.1418d3c90
mov r8d, eax
mov r9, rbx
xor edx, edx
mov rcx, rsi
call fcn.14188b810
nop
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1418cad31
cmp eax, 0xffffffff
je 0x1418cad40
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1418cad40
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1418cad5e
cmp eax, 0xffffffff
je 0x1418cad6d
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1418cad6d
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1418993e0
nop
lea rcx, [rsp + 0x40]
call fcn.1418ccfe0
mov rax, rsi
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.14196a0d0
mov rbx, qword [rsp + 0x350]
add rsp, 0x310
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret