Function at 0x140046000
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140172608]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov rsi, r8
mov rbx, rdx
mov r10, qword [0x1401720a0]
lea r12, [0x1401720a0]
lea r13, [0x14014c7e8]
mov r15d, 1
cmp r10, r12
je 0x140046075
test byte [r10 + 0x1c], r15b
je 0x140046075
cmp byte [r10 + 0x19], 4
jb 0x140046075
mov rcx, qword [r10 + 0x10]
mov edx, 0x154
mov r8, r13
call fcn.140004b74
mov r10, qword [0x1401720a0]
xor r14d, r14d
mov dword [rsp + 0x78], 0xa
xorps xmm0, xmm0
mov byte [rsp + 0x30], r14b
mov byte [rsp + 0x31], r14b
mov edi, r14d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r14
movdqa xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x70], r14
mov qword [rbp - 0x78], r14
mov dword [rbp - 0x70], r14d
mov qword [rbp - 0x68], r14
mov byte [rbp - 0x60], r14b
mov dword [rbp - 0x80], r14d
cmp r10, r12
je 0x140046108
test byte [r10 + 0x1c], r15b
je 0x140046108
cmp byte [r10 + 0x19], 4
jb 0x140046108
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.140084c1c
mov rcx, qword [0x1401720a0]
mov edx, 0x155
mov r9, rax
mov qword [rsp + 0x20], rsi
mov r8, r13
mov rcx, qword [rcx + 0x10]
call fcn.140005bdc
mov r10, qword [0x1401720a0]
mov rax, qword [rbx]
cmp rax, qword [0x140154f60]
jne 0x140046125
mov rax, qword [rbx + 8]
cmp rax, qword [0x140154f68]
je 0x1400463be
test rsi, rsi
je 0x1400463be
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov rcx, rbx
call fcn.140087c2c
mov rdi, qword [rsp + 0x40]
mov ebx, eax
test eax, eax
js 0x1400461b5
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.140084cd4
mov ebx, eax
test eax, eax
js 0x1400461b5
mov r8d, r15d
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x50]
call fcn.14012f8c4
mov ebx, eax
test eax, eax
jns 0x1400461c1
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x1400463c3
test byte [r10 + 0x1c], r15b
je 0x1400463c3
cmp byte [r10 + 0x19], 2
jb 0x1400463c3
mov edx, 0x156
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x38]
mov r8, r13
mov rcx, qword [r10 + 0x10]
call fcn.140005b60
mov r10, qword [0x1401720a0]
jmp 0x1400463c3
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x30]
call fcn.14012c444
mov ebx, eax
test eax, eax
jns 0x140046202
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x1400463c3
test byte [r10 + 0x1c], r15b
je 0x1400463c3
cmp byte [r10 + 0x19], 2
jb 0x1400463c3
mov edx, 0x157
jmp 0x1400461a0
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
movzx ecx, r14b
cmove ecx, r15d
mov dl, byte [rsp + 0x30]
test dl, dl
je 0x140046377
test cl, cl
je 0x140046377
mov rcx, qword [rsp + 0x38]
lea rdx, [rsp + 0x31]
call fcn.14012c570
mov ebx, eax
test eax, eax
jns 0x14004627f
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x1400463c3
test byte [r10 + 0x1c], r15b
je 0x1400463c3
cmp byte [r10 + 0x19], 2
jb 0x1400463c3
mov rcx, qword [r10 + 0x10]
mov edx, 0x15a
mov r9d, eax
mov r8, r13
call fcn.140004b98
jmp 0x1400461b5
cmp byte [rsp + 0x31], r14b
je 0x1400462cb
mov ebx, 0x80780047
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x1400463c3
test byte [r10 + 0x1c], r15b
je 0x1400463c3
cmp byte [r10 + 0x19], 2
jb 0x1400463c3
mov r9, qword [rsp + 0x38]
mov edx, 0x15b
mov rcx, qword [r10 + 0x10]
mov r8, r13
call fcn.140005afc
jmp 0x1400461b5
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SetVolumeLabelW]
test eax, eax
jne 0x140046324
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x1400463c3
test byte [r10 + 0x1c], r15b
je 0x1400463c3
cmp byte [r10 + 0x19], 2
jb 0x1400463c3
mov edx, 0x15c
mov dword [rsp + 0x20], ebx
jmp 0x1400461a4
mov rcx, qword [rsp + 0x38]
call fcn.140109290
mov ebx, eax
test eax, eax
jns 0x1400461b5
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x140046372
test byte [r10 + 0x1c], r15b
je 0x140046372
cmp byte [r10 + 0x19], 3
jb 0x140046372
mov r9, qword [rsp + 0x38]
mov edx, 0x15d
mov rcx, qword [r10 + 0x10]
mov r8, r13
mov dword [rsp + 0x20], eax
call fcn.140005b60
mov r10, qword [0x1401720a0]
mov ebx, r14d
jmp 0x1400463c3
mov ebx, 0x8078000c
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x1400463c3
test byte [r10 + 0x1c], r15b
je 0x1400463c3
cmp byte [r10 + 0x19], 2
jb 0x1400463c3
mov r9, qword [rsp + 0x38]
mov r8, r13
movzx eax, cl
movzx ecx, dl
mov edx, 0x159
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [r10 + 0x10]
call fcn.140010730
jmp 0x1400461b5
mov ebx, 0x80070057
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x1400463df
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x1401720a0]
mov qword [rsp + 0x38], r14
test rdi, rdi
je 0x1400463f4
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov r10, qword [0x1401720a0]
cmp r10, r12
je 0x140046417
test byte [r10 + 0x1c], r15b
je 0x140046417
cmp byte [r10 + 0x19], 4
jb 0x140046417
mov rcx, qword [r10 + 0x10]
mov edx, 0x15e
mov r8, r13
call fcn.140004b74
lea rcx, [rsp + 0x50]
call fcn.14012efcc
mov eax, ebx
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140141cf0
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret