Function at 0x140240400
Capabilities:
Get common file path
Reference wmi statements

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2b8
movaps xmmword [rsp + 0x2a0], xmm6
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x298], rax
lea rcx, [rsp + 0x180]
mov r8d, 0x10a
mov dl, 0xaa
call fcn.1403369a0
lea rbx, [rsp + 0x80]
mov r8d, 0x104
mov rcx, rbx
xor edx, edx
call fcn.1403369a0
mov rcx, rbx
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14024069e
mov word [rsp + 0x84], 0
xor r12d, r12d
lea r13, [rsp + 0x78]
mov qword [r13], r12
lea rax, str.SELECT__FROM_Win32_LogicalDisk
lea rdx, [rsp + 0x68]
mov qword [rdx], rax
mov qword [rdx + 8], 0x1f
lea rbx, [rsp + 0x30]
mov rcx, rbx
call fcn.140207850
mov r14, qword [rbx]
lea rax, [0x1403e5148]
lea rdx, [rsp + 0x50]
mov qword [rdx], rax
mov qword [rdx + 8], 3
lea r15, [rsp + 0x60]
mov rcx, r15
call fcn.140207850
mov rdx, qword [r15]
mov rax, qword [rdi]
mov rax, qword [rax + 0xa0]
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r12
mov rcx, rdi
mov r8, r14
mov r9d, 0x20
call qword [case.0x1403339d6.0]
mov r12d, eax
mov rcx, r15
call fcn.1402078a0
mov rcx, rbx
call fcn.1402078a0
test r12d, r12d
js 0x1402406a6
lea r13, [rsp + 0x4c]
lea rdi, [rsp + 0x60]
lea rbx, [rsp + 0x30]
xorps xmm6, xmm6
lea r14, str.DeviceId
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14024069e
mov dword [rsp + 0x4c], 0
mov qword [rsp + 0x60], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], r13
mov edx, 0xffffffff
mov r8d, 1
mov r9, rdi
call qword [case.0x1403339d6.0]
xor r15d, r15d
test eax, eax
js 0x140240664
cmp dword [rsp + 0x4c], 0
mov rcx, qword [rsp + 0x60]
mov r12d, 0x80004005
je 0x14024066e
test rcx, rcx
je 0x14024066e
mov rcx, rsi
mov rdx, rbx
call fcn.1403935a0
mov r12, qword [rsp + 0x60]
mov rcx, rsi
call fcn.140224f60
mov rcx, qword [r12]
mov r10, qword [rcx + 0x20]
movups xmmword [rsp + 0x20], xmm6
xor r15d, r15d
mov rcx, r12
mov rdx, r14
xor r8d, r8d
mov r9, rax
mov rax, r10
call qword [case.0x1403339d6.0]
test eax, eax
js 0x140240664
mov r15b, 1
cmp word [rsi], 8
jne 0x140240666
mov rax, qword [rsi + 8]
test rax, rax
je 0x140240666
movzx eax, word [rax]
cmp ax, word [rsp + 0x80]
jne 0x140240666
mov rcx, rsi
mov rdx, rbx
call fcn.1403935a0
mov r12, qword [rsp + 0x60]
mov rcx, rsi
call fcn.140224f60
mov rcx, qword [r12]
mov r10, qword [rcx + 0x20]
movups xmmword [rsp + 0x20], xmm6
xor r15d, r15d
mov rcx, r12
lea rdx, str.VolumeSerialNumber
xor r8d, r8d
mov r9, rax
mov rax, r10
call qword [case.0x1403339d6.0]
test eax, eax
js 0x140240664
xor r15d, r15d
cmp word [rsi], 8
jne 0x140240697
cmp qword [rsi + 8], 0
mov ebp, 0
mov eax, 0x80004005
cmove ebp, eax
jmp 0x140240666
mov ebp, eax
mov rcx, qword [rsp + 0x60]
mov r12d, ebp
test rcx, rcx
je 0x140240689
mov qword [rsp + 0x60], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1403339d6.0]
mov ebp, r12d
test r15b, r15b
jne 0x140240535
jmp 0x1402406a6
mov ebp, 0x80004005
jmp 0x140240666
mov r12d, 0x80004005
jmp 0x1402406c6
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1402406c6
mov qword [rsp + 0x78], 0
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [case.0x1403339d6.0]
mov rcx, qword [rsp + 0x298]
xor rcx, rsp
call fcn.140334bf0
mov eax, r12d
movaps xmm6, xmmword [rsp + 0x2a0]
add rsp, 0x2b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret