Function at 0x140040b90
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rsp + 0x180], rbx
mov rax, qword [0x140225e48]
xor rax, rsp
mov qword [rbp + 0x28], rax
mov qword [rsp + 0x78], rdx
mov r14, rcx
lea rax, [0x140226b10]
mov rcx, qword [0x140226b10]
cmp rcx, rax
je 0x140040c02
test byte [rcx + 0x1c], 2
je 0x140040c02
cmp byte [rcx + 0x19], 4
jb 0x140040c02
mov edx, 0x31
lea r8, [0x1401b77f0]
mov rcx, qword [rcx + 0x10]
call fcn.14001f000
xor r15d, r15d
mov qword [rsp + 0x68], r15
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r9, [0x1401b7a88]
xor edx, edx
lea r8d, [r15 + 0x17]
lea rcx, [0x1401cd398]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoCreateInstance]
mov esi, eax
test eax, eax
je 0x140040c54
lea r9, [0x1401b7a98]
mov r8d, eax
lea rdx, str.source_serviceBootOptimization.cpp
mov ecx, 0x228
call fcn.140001f70
jmp 0x1400411dd
mov qword [rsp + 0x58], r15
mov rdi, qword [rsp + 0x68]
mov ecx, 0x18
call fcn.1400ea860
mov rbx, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140040ca0
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMv2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140040ca3
mov ecx, 0x8007000e
call fcn.1400e9990
int3
mov rbx, r15
mov qword [rsp + 0x50], rbx
test rbx, rbx
jne 0x140040cb8
mov ecx, 0x8007000e
call fcn.1400e9990
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140040ccd
mov qword [rsp + 0x58], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [rax + 0x18]
mov esi, eax
mov rcx, rbx
call fcn.14000f180
test esi, esi
je 0x140040d2b
lea r9, str.ConnectServer
mov r8d, esi
lea rdx, str.source_serviceBootOptimization.cpp
mov ecx, 0x22c
call fcn.140001f70
jmp 0x1400411c7
mov qword [rsp + 0x60], r15
mov dword [rsp + 0x38], r15d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.api_ms_win_core_com_l1_1_0.dll_CoSetProxyBlanket]
mov esi, eax
test eax, eax
je 0x140040d85
lea r9, [0x1401b7b00]
mov r8d, eax
lea rdx, str.source_serviceBootOptimization.cpp
mov ecx, 0x231
call fcn.140001f70
jmp 0x1400411b1
mov rsi, qword [rsp + 0x58]
mov ecx, 0x18
call fcn.1400ea860
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140040dcc
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, str.SELECT__FROM_Win32_PageFileUsage
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rdi], rax
test rax, rax
jne 0x140040dcf
mov ecx, 0x8007000e
call fcn.1400e9990
int3
mov rdi, r15
mov qword [rsp + 0x50], rdi
test rdi, rdi
jne 0x140040de4
mov ecx, 0x8007000e
call fcn.1400e9990
nop
mov ecx, 0x18
call fcn.1400ea860
mov rbx, rax
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140040e25
mov qword [rax + 8], r15
mov dword [rax + 0x10], 1
lea rcx, [0x1401b7b68]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x140040e28
mov ecx, 0x8007000e
call fcn.1400e9990
int3
mov rbx, r15
mov qword [rbp - 0x80], rbx
test rbx, rbx
jne 0x140040e3c
mov ecx, 0x8007000e
call fcn.1400e9990
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140040e51
mov qword [rsp + 0x60], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rsi]
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], r15
mov r9d, 0x30
mov r8, qword [rdi]
mov rdx, qword [rbx]
mov rcx, rsi
call qword [rax + 0xa0]
mov esi, eax
mov rcx, rbx
call fcn.14000f180
nop
mov rcx, rdi
call fcn.14000f180
test esi, esi
je 0x140040eaf
lea r9, str.ExecQuery_for_Win32_PageFileUsage
mov r8d, esi
lea rdx, str.source_serviceBootOptimization.cpp
mov ecx, 0x238
call fcn.140001f70
jmp 0x1400411b1
mov rdx, qword [r14 + 0x20]
add rdx, 0x70
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
or r12, 0xffffffffffffffff
mov r8, r12
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140040ed0
lea rcx, [rbp - 0x38]
call fcn.14000c240
nop
nop word [rax + rax]
mov qword [rsp + 0x50], r15
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x50]
mov r8d, 1
mov edx, r12d
call qword [rax + 0x20]
mov esi, eax
test eax, eax
jne 0x140041061
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x78]
xor r8d, r8d
lea rdx, str.Name
call qword [rax + 0x20]
mov esi, eax
test eax, eax
jne 0x14004114d
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
mov rdx, qword [rbp - 0x70]
mov r8, r12
inc r8
cmp word [rdx + r8*2], 0
jne 0x140040f72
lea rcx, [rbp - 0x58]
call fcn.14000c240
nop
lea rbx, [rbp - 0x58]
mov r13, qword [rbp - 0x40]
cmp r13, 8
mov rcx, qword [rbp - 0x58]
cmovae rbx, rcx
lea rax, [rbp - 0x58]
cmovae rax, rcx
mov rdx, qword [rbp - 0x48]
lea rax, [rax + rdx*2]
lea r14, [rbp - 0x58]
cmovae r14, rcx
mov rdi, r15
mov r15, rax
sub r15, r14
inc r15
shr r15, 1
cmp r14, rax
mov eax, 0
cmova r15, rax
test r15, r15
je 0x140040ff7
sub r14, rbx
movzx ecx, word [rbx + r14]
call fcn.140143248
mov word [rbx], ax
lea rbx, [rbx + 2]
inc rdi
cmp rdi, r15
jne 0x140040fd6
mov r13, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x48]
lea r9, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae r9, qword [rbp - 0x38]
lea rcx, [rbp - 0x58]
cmp r13, 8
mov rbx, qword [rbp - 0x58]
cmovae rcx, rbx
mov rax, qword [rbp - 0x28]
mov qword [rsp + 0x20], rax
xor r8d, r8d
call fcn.14003f880
cmp rax, 0xffffffffffffffff
jne 0x140041083
cmp r13, 8
jb 0x140041042
lea r8, [r13 + 1]
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.14000c3a0
xor r15d, r15d
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140041076
mov qword [rsp + 0x50], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
test esi, esi
jne 0x140041186
jmp 0x140040ef0
xor r15d, r15d
mov qword [rbp - 8], r15
mov qword [rbp], 7
mov word [rbp - 0x18], r15w
mov rdx, qword [rbp - 0x70]
nop dword [rax + rax]
inc r12
cmp word [rdx + r12*2], r15w
jne 0x1400410a0
mov r8, r12
lea rcx, [rbp - 0x18]
call fcn.14000c240
nop
lea r8, [rbp - 0x18]
lea rdx, [0x1401b7a78]
lea rcx, [rbp + 8]
call fcn.14003eff0
mov rdx, rax
mov rcx, qword [rsp + 0x78]
call fcn.14003fd10
mov r8, qword [rbp + 0x20]
cmp r8, 8
jb 0x1400410f2
inc r8
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 8]
call fcn.14000c3a0
mov qword [rbp + 0x18], r15
mov qword [rbp + 0x20], 7
mov word [rbp + 8], r15w
mov r8, qword [rbp]
cmp r8, 8
jb 0x14004111d
inc r8
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x18]
call fcn.14000c3a0
mov esi, r15d
mov r8, qword [rbp - 0x40]
cmp r8, 8
jb 0x14004113a
inc r8
mov rdx, qword [rbp - 0x58]
lea rcx, [rbp - 0x58]
call fcn.14000c3a0
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
jmp 0x140041165
xor r9d, r9d
mov r8d, eax
lea rdx, str.source_serviceBootOptimization.cpp
mov ecx, 0x243
call fcn.140001f70
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140041186
mov qword [rsp + 0x50], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov r8, qword [rbp - 0x20]
cmp r8, 8
jb 0x1400411a0
inc r8
mov rdx, qword [rbp - 0x38]
lea rcx, [rbp - 0x38]
call fcn.14000c3a0
mov qword [rbp - 0x28], r15
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], r15w
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1400411c7
mov qword [rsp + 0x60], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400411dd
mov qword [rsp + 0x58], r15
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400411f2
mov qword [rsp + 0x68], r15
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov eax, esi
mov rcx, qword [rbp + 0x28]
xor rcx, rsp
call fcn.1400eb3e0
mov rbx, qword [rsp + 0x180]
add rsp, 0x130
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret