Function at 0x1400ac820
Capabilities:
Get disk information

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x268]
sub rsp, 0x340
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x141992390]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov rax, rdx
mov rdi, rcx
mov qword [rbp - 0x18], rcx
xor r15d, r15d
mov dword [rsp + 0x40], r15d
lea r12, [0x1401a1e20]
mov qword [rcx], r12
mov dword [rsp + 0x40], 1
lea rdx, [rsp + 0x70]
mov rcx, rax
call fcn.1400a5f90
nop
mov rcx, rax
call fcn.140046630
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 rax, qword [rsp + 0x70]
mov ecx, dword [rax]
lea ebx, [r15 - 1]
test ecx, ecx
je 0x1400ac8e3
cmp ecx, ebx
je 0x1400ac8f6
mov ecx, ebx
mov rax, qword [rsp + 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400ac8f6
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x70]
call fcn.140049bf0
cmp r14, 0xffffffffffffffff
je 0x1400acd43
mov ecx, 0x4000
call fcn.14012ab94
mov rsi, rax
test rax, rax
jne 0x1400ac917
call fcn.140057ac0
mov dword [rsp + 0x6c], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x4000
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov edx, 0x900a8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400acb4f
mov eax, dword [rsi]
cmp eax, 0xa0000003
jne 0x1400aca00
movzx r8d, word [rsi + 0xa]
shr r8d, 1
movzx eax, word [rsi + 8]
shr rax, 1
add rax, 8
lea rdx, [rsi + rax*2]
lea rcx, [rsp + 0x78]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rbp - 0x48], rax
mov qword [rcx], r12
mov rax, qword [rsp + 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400ac9b7
cmp ecx, 0xffffffff
je 0x1400ac9ca
mov ecx, ebx
mov rax, qword [rsp + 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
mov dword [rsp + 0x40], 9
jne 0x1400ac9d2
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x78]
call fcn.140049bf0
mov dword [rsp + 0x40], 9
mov rcx, qword [rdi]
mov qword [rbp - 0x68], rcx
mov rax, qword [rbp - 0x48]
mov qword [rdi], rax
mov eax, dword [rcx]
test eax, eax
je 0x1400ac9fa
cmp eax, 0xffffffff
je 0x1400aca6a
mov ecx, ebx
mov rax, qword [rbp - 0x68]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400aca6a
mov rcx, qword [rbp - 0x68]
jmp 0x1400aca5b
cmp eax, 0xa000000c
jne 0x1400aca6a
movzx r8d, word [rsi + 0xa]
shr r8d, 1
movzx eax, word [rsi + 8]
shr rax, 1
add rax, 0xa
lea rdx, [rsi + rax*2]
lea rcx, [rbp - 0x80]
call fcn.1400043b0
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rbp - 0x10], rcx
mov rax, qword [rax]
mov qword [rdi], rax
mov qword [rdx], rcx
mov rax, qword [rbp - 0x80]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400aca57
cmp ecx, ebx
je 0x1400aca6a
mov ecx, ebx
mov rax, qword [rbp - 0x80]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400aca6a
mov rcx, qword [rbp - 0x80]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.140049bf0
mov rax, qword [rdi]
cmp dword [rax + 4], 4
jle 0x1400acb4f
mov rcx, qword [rax + 0x10]
cmp word [rcx + rax], 0x5c
jne 0x1400acb4f
cmp word [rcx + rax + 4], 0x3f
jne 0x1400acb4f
cmp word [rcx + rax + 6], 0x5c
jne 0x1400acb4f
mov r9d, ebx
mov r8d, 4
lea rdx, [rbp - 0x78]
mov rcx, rdi
call fcn.1400419d0
mov rdx, rax
mov rcx, qword [rdi]
mov qword [rbp - 8], rcx
mov rax, qword [rax]
mov qword [rdi], rax
mov qword [rdx], rcx
mov rax, qword [rbp - 0x78]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400acae4
cmp ecx, 0xffffffff
je 0x1400acaf6
mov ecx, ebx
mov rax, qword [rbp - 0x78]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400acaf6
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x78]
call fcn.140049bf0
mov dword [rbp - 0x60], 3
lea rax, [0x1401fef40]
mov qword [rbp - 0x58], rax
mov r8d, 3
lea rdx, [rbp]
mov rcx, rdi
call fcn.1400413c0
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14003cd00
test al, al
je 0x1400acb4f
mov eax, 0x5c
mov word [rsp + 0x68], ax
movzx r9d, ax
xor edx, edx
lea r8d, [rax - 0x59]
mov rcx, rdi
call fcn.140043b40
mov rcx, rsi
call fcn.1401297e8
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x141998f1c]
cmp eax, 0xfffffffe
jle 0x1400acb70
call fcn.1400abbd0
mov edx, 0x1d
lea rcx, [0x1401fef48]
call fcn.140040310
mov qword [rsp + 0x48], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x60]
call fcn.14008ac70
nop
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400acbbc
cmp ecx, 0xffffffff
je 0x1400acbcf
mov ecx, ebx
mov rax, qword [rsp + 0x48]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400acbcf
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x48]
call fcn.140049bf0
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x60]
call fcn.1400902b0
test eax, eax
jne 0x1400acd39
lea rcx, [rsp + 0x60]
call fcn.140091850
mov r8d, eax
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.1400413c0
mov dword [rbp - 0x40], 4
lea rcx, [0x1401fef68]
mov qword [rbp - 0x38], rcx
lea rcx, [rbp - 0x40]
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x28], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x30]
call fcn.1400a8c80
nop
lea rcx, [rsp + 0x58]
call fcn.140046630
mov rcx, rax
lea r9, [rbp - 0x50]
mov r8d, 0x104
lea rdx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVolumePathNamesForVolumeNameW]
test eax, eax
je 0x1400acd07
mov r8d, ebx
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x70]
call fcn.140040590
mov rcx, rax
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov qword [rcx], r12
mov eax, dword [rsp + 0x40]
or eax, 0x50
and eax, 0xffffffef
mov dword [rsp + 0x40], eax
mov rax, qword [rbp - 0x70]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400acca3
cmp ecx, 0xffffffff
je 0x1400accb6
mov ecx, ebx
mov rax, qword [rbp - 0x70]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400accb6
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbp - 0x70]
call fcn.140049bf0
nop
lea rcx, [rsp + 0x60]
call fcn.140091850
lea r9, [rsp + 0x50]
mov r8d, eax
xor edx, edx
mov rcx, rdi
call fcn.140043a90
nop
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400accf3
cmp ecx, 0xffffffff
je 0x1400acd07
mov ecx, ebx
mov rax, qword [rsp + 0x50]
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x1400acd07
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x50]
call fcn.140049bf0
nop
mov rax, qword [rsp + 0x58]
mov ecx, dword [rax]
test ecx, ecx
je 0x1400acd25
cmp ecx, 0xffffffff
je 0x1400acd39
mov rax, qword [rsp + 0x58]
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1400acd39
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rsp + 0x58]
call fcn.140049bf0
nop
lea rcx, [rsp + 0x60]
call fcn.14008b480
mov rax, rdi
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140121c90
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret