Function at 0x1400a2138
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xb0
xor r12d, r12d
lea rcx, [rbp + 0x7f]
mov r15d, r12d
mov qword [rbp + 0x7f], r12
mov qword [rbp + 0x6f], r12
mov qword [rbp + 0x77], r12
call fcn.1400416d8
lea rax, [rbp + 0x7f]
xor edx, edx
lea r9, [0x1400b9448]
mov qword [rsp + 0x20], rax
lea r8d, [r12 + 1]
lea rcx, [0x1400b9438]
call qword [sym.imp.ole32.dll_CoCreateInstance]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [section..data]
lea rdi, section..data
lea esi, [r12 + 5]
lea r14d, [r12 + 2]
cmp r10, rdi
je 0x1400a21f1
test byte [r10 + 0x1c], 0x20
je 0x1400a21f1
test eax, eax
mov edx, r14d
movzx eax, byte [r10 + 0x19]
cmovns edx, esi
cmp eax, edx
jb 0x1400a21f1
mov rax, qword [rbp + 0x7f]
lea edx, [rsi + 5]
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400b9458]
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.140052b04
mov r10, qword [section..data]
test ebx, ebx
js 0x1400a288a
lea rcx, str.ROOTWMI
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
jne 0x1400a2257
mov ebx, 0x8007000e
mov r10, qword [section..data]
cmp r10, rdi
je 0x1400a24cc
test byte [r10 + 0x1c], 0x20
je 0x1400a24cc
cmp byte [r10 + 0x19], 4
jb 0x1400a24cc
mov rcx, qword [r10 + 0x10]
lea edx, [rax + 0xb]
lea r8, [0x1400b9458]
call fcn.140045cf4
jmp 0x1400a24c5
mov rbx, qword [rbp + 0x7f]
lea rcx, [rbp + 0x6f]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x18]
call fcn.1400416d8
movabs r10, 0xc2392f9178de2a70
lea rax, [rbp + 0x6f]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], r12
mov rdx, rsi
mov qword [rsp + 0x30], r12
mov rcx, rbx
mov dword [rsp + 0x28], r12d
mov rax, rdi
mov qword [rsp + 0x20], r12
call qword [case.0x140028cb6.0]
mov ebx, eax
mov rcx, qword [section..data]
lea rdi, section..data
cmp rcx, rdi
je 0x1400a22f8
test byte [rcx + 0x1c], 0x20
je 0x1400a22f8
test eax, eax
mov edx, r14d
mov eax, 5
cmovns edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jb 0x1400a22f8
mov rax, qword [rbp + 0x6f]
lea r8, [0x1400b9458]
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayGetDim
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.140052b04
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
test ebx, ebx
js 0x1400a24c5
mov rcx, qword [rbp + 0x6f]
mov eax, 3
mov dword [rsp + 0x38], r12d
or r9, 0xffffffffffffffff
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], eax
or edx, 0xffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
nop dword [rax + rax]
mov ebx, eax
mov r10, qword [section..data]
mov esi, 5
cmp r10, rdi
je 0x1400a2391
test byte [r10 + 0x1c], 0x20
je 0x1400a2391
test eax, eax
mov ecx, r14d
movzx eax, byte [r10 + 0x19]
cmovns ecx, esi
cmp eax, ecx
jb 0x1400a2391
mov rax, qword [rbp + 0x6f]
lea edx, [rsi + 8]
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400b9458]
mov r9d, ebx
mov qword [rsp + 0x20], rax
call fcn.140052b04
mov r10, qword [section..data]
test ebx, ebx
js 0x1400a288a
lea rcx, [0x1400b9358]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
lea rcx, str.SELECT__FROM_MSNdis_PMCapabilities
mov r14, rax
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
nop dword [rax + rax]
mov rsi, rax
test r14, r14
je 0x1400a246f
test rax, rax
je 0x1400a246f
mov rbx, qword [rbp + 0x6f]
lea rcx, [rbp + 0x77]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa0]
call fcn.1400416d8
movabs r10, 0xb1fd9eef10dd3170
lea rax, [rbp + 0x77]
mov r9d, 0x30
mov qword [rsp + 0x28], rax
mov r8, rsi
mov rax, rdi
mov qword [rsp + 0x20], r12
mov rdx, r14
mov rcx, rbx
call qword [case.0x140028cb6.0]
mov ebx, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400a24a1
test byte [rcx + 0x1c], 0x20
je 0x1400a24a1
mov edx, 2
test ebx, ebx
lea eax, [rdx + 3]
cmovns edx, eax
movzx eax, byte [rcx + 0x19]
cmp eax, edx
jb 0x1400a24a1
mov rax, qword [rbp + 0x77]
mov r9d, ebx
mov rcx, qword [rcx + 0x10]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r14
call fcn.1400a28f4
jmp 0x1400a24a1
mov ebx, 0x8007000e
mov rcx, qword [section..data]
cmp rcx, rdi
je 0x1400a24a1
test byte [rcx + 0x1c], 0x20
je 0x1400a24a1
cmp byte [rcx + 0x19], 4
jb 0x1400a24a1
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9458]
mov edx, SafeArrayGetDim
call fcn.140045cf4
mov rcx, r14
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov rcx, rsi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop dword [rax + rax]
mov r14d, 2
mov r10, qword [section..data]
mov esi, 5
test ebx, ebx
js 0x1400a288a
test r15d, r15d
jne 0x1400a288a
mov rcx, qword [rbp + 0x77]
mov qword [rbp - 0x29], r12
mov dword [rbp + 0x67], r12d
mov rax, qword [rcx]
movabs r10, 0xe3cd87de78542870
mov rax, qword [rax + 0x20]
lea rdx, [rbp + 0x67]
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x29]
or edx, 0xffffffff
lea r8d, [r15 + 1]
call qword [case.0x140028cb6.0]
mov ebx, eax
cmp dword [rbp + 0x67], r12d
je 0x1400a287a
test eax, eax
js 0x1400a287a
lea rcx, [rbp + 0xf]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x29]
mov rax, qword [rcx]
movabs r10, 0x966007131edea370
mov rax, qword [rax + 0x20]
lea r9, [rbp + 0xf]
mov qword [rsp + 0x28], r12
lea rdx, str.PMCapabilitiesParam
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [case.0x140028cb6.0]
mov edi, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400a25ba
test byte [rcx + 0x1c], 0x20
je 0x1400a25ba
movzx eax, byte [rcx + 0x19]
test edi, edi
mov edx, r14d
cmovns edx, esi
cmp eax, edx
jb 0x1400a25ba
movzx eax, word [rbp + 0xf]
lea edx, [r15 + 0x10]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400b9458]
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.140049814
test edi, edi
js 0x1400a2855
mov eax, SafeArrayGetDim
cmp ax, word [rbp + 0xf]
jne 0x1400a2855
mov rcx, qword [rbp + 0x17]
mov qword [rbp - 0x31], r12
mov rax, qword [rcx]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rbp - 0x31]
lea rdx, [0x1400b9428]
call qword [case.0x140028cb6.0]
mov edi, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400a2646
test byte [rcx + 0x1c], 0x20
je 0x1400a2646
movzx eax, byte [rcx + 0x19]
test edi, edi
mov edx, r14d
cmovns edx, esi
cmp eax, edx
jb 0x1400a2646
mov rax, qword [rbp - 0x31]
lea r8, [0x1400b9458]
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayUnlock
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.140052b04
test edi, edi
js 0x1400a284c
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x31]
mov rax, qword [rcx]
movabs r10, 0x966007131edea370
mov rax, qword [rax + 0x20]
lea r9, [rbp - 9]
mov qword [rsp + 0x28], r12
lea rdx, str.WakeOnMagicPacket
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [case.0x140028cb6.0]
mov edi, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400a26dc
test byte [rcx + 0x1c], 0x20
je 0x1400a26dc
movzx eax, byte [rcx + 0x19]
test edi, edi
mov edx, r14d
cmovns edx, esi
cmp eax, edx
jb 0x1400a26dc
movzx eax, word [rbp - 9]
lea r8, [0x1400b9458]
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayUnlock
mov r9d, edi
mov dword [rsp + 0x20], eax
call fcn.140049814
test edi, edi
js 0x1400a283c
mov eax, SafeArrayGetDim
cmp ax, word [rbp - 9]
jne 0x1400a283c
mov rcx, qword [rbp - 1]
mov qword [rbp - 0x39], r12
mov rax, qword [rcx]
movabs r10, 0xdee01e7974d59970
mov rax, qword [rax]
lea r8, [rbp - 0x39]
lea rdx, [0x1400b9428]
call qword [case.0x140028cb6.0]
mov edi, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400a2768
test byte [rcx + 0x1c], 0x20
je 0x1400a2768
movzx eax, byte [rcx + 0x19]
test edi, edi
mov edx, r14d
cmovns edx, esi
cmp eax, edx
jb 0x1400a2768
mov rax, qword [rbp - 0x39]
lea r8, [0x1400b9458]
mov rcx, qword [rcx + 0x10]
mov edx, SafeArrayUnlock
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.140052b04
test edi, edi
js 0x1400a2833
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x39]
mov rax, qword [rcx]
movabs r10, 0x966007131edea370
mov rax, qword [rax + 0x20]
lea r9, [rbp - 0x21]
mov qword [rsp + 0x28], r12
lea rdx, str.NdisPMCapabilityState
xor r8d, r8d
mov qword [rsp + 0x20], r12
call qword [case.0x140028cb6.0]
mov edi, eax
mov rcx, qword [section..data]
lea rax, section..data
cmp rcx, rax
je 0x1400a2807
test byte [rcx + 0x1c], 0x20
je 0x1400a2807
movzx eax, byte [rcx + 0x19]
test edi, edi
mov edx, r14d
cmovns edx, esi
cmp eax, edx
jb 0x1400a2807
movzx r8d, word [rbp - 0x21]
mov edx, SafeArrayUnlock
mov eax, dword [rbp - 0x19]
mov r9d, edi
mov rcx, qword [rcx + 0x10]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r8d
lea r8, [0x1400b9458]
call fcn.14005e168
test edi, edi
js 0x1400a2823
mov eax, 3
cmp ax, word [rbp - 0x21]
jne 0x1400a2823
cmp dword [rbp - 0x19], r14d
mov eax, 1
cmove r15d, eax
lea rcx, [rbp - 0x21]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
lea rcx, [rbp - 0x39]
call fcn.140032704
lea rcx, [rbp - 9]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
lea rcx, [rbp - 0x31]
call fcn.140032704
lea rcx, [rbp + 0xf]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop dword [rax + rax]
lea rcx, [rbp - 0x29]
call fcn.140032704
mov r10, qword [section..data]
jmp 0x1400a24d1
lea rcx, [rbp - 0x29]
call fcn.140032704
mov r10, qword [section..data]
lea rax, section..data
cmp r10, rax
je 0x1400a28ba
test byte [r10 + 0x1c], r14b
je 0x1400a28ba
cmp byte [r10 + 0x19], sil
jb 0x1400a28ba
mov rcx, qword [r10 + 0x10]
lea r8, [0x1400b9458]
mov edx, reloc.OLEAUT32.dll_SafeArrayUnlock
mov r9d, r15d
call fcn.140043960
lea rcx, [rbp + 0x77]
call fcn.1400416d8
lea rcx, [rbp + 0x6f]
call fcn.1400416d8
lea rcx, [rbp + 0x7f]
call fcn.1400416d8
mov eax, r15d
add rsp, 0xb0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret