Function at 0x140010c90
Capabilities:
Reference wmi statements

Disassembly:
push rbp
push rbx
push r15
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140027040]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xor r15d, r15d
lea r8, [0x14001e8b0]
lea rdx, [rbp - 1]
mov qword [rbp - 9], r15
lea rcx, [rbp - 9]
mov qword [rbp - 1], r15
mov qword [rbp - 0x11], r15
mov ebx, r15d
call fcn.140016e60
test eax, eax
je 0x140010f36
mov qword [rsp + 0xb0], rsi
lea rcx, [0x1400224d8]
mov qword [rsp + 0xb8], rdi
mov qword [rsp + 0xc0], r12
mov qword [rsp + 0xc8], r14
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
lea rcx, str.SELECT__FROM_Win32_LogicalDisk
mov rsi, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12d, 1
mov rdi, rax
mov r14d, r12d
test rsi, rsi
je 0x140010d91
test rax, rax
je 0x140010d88
mov rcx, qword [rbp - 9]
lea rax, [rbp - 0x11]
mov qword [rsp + 0x28], rax
mov r9d, 0x30
mov r8, rdi
mov qword [rsp + 0x20], r15
mov rdx, qword [rcx]
mov r10, qword [rdx + 0xa0]
mov rdx, rsi
call r10
test eax, eax
jns 0x140010d88
lea rcx, str.ExecQuery
mov r14d, r15d
call fcn.140014740
mov rcx, qword [rbp - 9]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 1]
mov rax, qword [rcx]
call qword [rax + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test rdi, rdi
je 0x140010d9f
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r14d, r14d
mov r14, qword [rsp + 0xc8]
je 0x140010f04
mov rcx, qword [rbp - 0x11]
mov qword [rbp - 0x19], r15
mov dword [rbp + 0x1f], r15d
test rcx, rcx
je 0x140010ee4
movabs rsi, 0x1400000000
nop
mov rax, qword [rcx]
lea rdx, [rbp + 0x1f]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x19]
mov edx, 0xffffffff
mov r8d, r12d
call qword [rax + 0x20]
cmp dword [rbp + 0x1f], r15d
je 0x140010ee0
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x140010e57
mov rax, qword [rcx]
lea r9, [rbp + 0x27]
mov qword [rsp + 0x28], r15
lea rdx, str.DriveType
xor r8d, r8d
mov qword [rsp + 0x20], r15
mov edi, r15d
call qword [rax + 0x20]
test eax, eax
js 0x140010e47
cmp word [rbp + 0x27], r12w
je 0x140010e47
mov eax, dword [rbp + 0x2f]
cmp eax, 2
je 0x140010e3a
add eax, 0xfffffffc
cmp eax, 2
ja 0x140010e3d
mov edi, r12d
lea rcx, [rbp + 0x27]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x19]
test edi, edi
je 0x140010e57
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140010ed1
mov rax, qword [rcx]
lea r9, [rbp + 7]
mov qword [rsp + 0x28], r15
lea rdx, str.Size
xor r8d, r8d
mov qword [rsp + 0x20], r15
call qword [rax + 0x20]
test eax, eax
js 0x140010ec3
cmp word [rbp + 7], r12w
je 0x140010ec3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], r15d
call qword [sym.imp.api_ms_win_crt_locale_l1_1_0.dll__get_current_locale]
mov rcx, qword [rbp + 0xf]
xor edx, edx
mov r9, rax
mov r8d, 0xa
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wcstoui64_l]
mov rdi, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [rax], r15d
jne 0x140010eb9
cmp rdi, rsi
cmovb ebx, r12d
lea rcx, [rbp + 7]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 0x10]
test ebx, ebx
jne 0x140010ee0
mov rcx, qword [rbp - 0x11]
test rcx, rcx
jne 0x140010dd0
jmp 0x140010ee4
mov rcx, qword [rbp - 0x11]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 9]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rbp - 1]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rdi, qword [rsp + 0xb8]
mov eax, ebx
mov rsi, qword [rsp + 0xb0]
mov r12, qword [rsp + 0xc0]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.1400177b0
add rsp, 0x90
pop r15
pop rbx
pop rbp
ret
mov eax, ebx
jmp 0x140010f1e