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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 8]
sub rsp, 0x108
cmp dword [rcx + 4], 0
mov rdi, rcx
je 0x140028627
mov eax, 1
add rsp, 0x108
pop rdi
pop rbp
ret
call fcn.140002c10
mov rcx, rax
test rax, rax
je 0x1400288b4
mov rax, qword [rax]
mov qword [rsp + 0x120], rbx
mov qword [rsp + 0x128], rsi
mov qword [rsp + 0x130], r12
mov qword [rsp + 0x100], r13
mov qword [rsp + 0xf8], r14
mov qword [rsp + 0xf0], r15
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rbx, rax
mov eax, dword [rdi + 0x78]
test eax, eax
jne 0x14002867c
xor edx, edx
jmp 0x140028684
cmp eax, 1
jne 0x14002868e
lea edx, [rax + 1]
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [rdi], eax
mov r8d, dword [rdi]
lea r13, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tecopowerwmiutil.cpp
lea r14, str.__CWmiUtil::InitWmiUtil_
lea r12, [0x1402a214c]
cmp r8d, 1
jbe 0x1400286dc
lea rdx, str.CoInitializeEx_Error._0x_08x
mov qword [rsp + 0x50], r13
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], 0x26
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x68], r12
mov dword [rsp + 0x70], 3
call fcn.140008d50
mov rcx, qword [rdi + 0x10]
lea r15, [rdi + 0x10]
xor esi, esi
test rcx, rcx
je 0x1400286f4
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r15], rsi
xor edx, edx
mov qword [rsp + 0x20], r15
lea r9, [0x140241748]
lea rcx, [0x140241738]
lea r8d, [rdx + 1]
call qword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x14002874b
mov r8d, dword [rdi]
lea rdx, str.CoInitializeEx_Error._0x_08x
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x78], r13
mov dword [rbp - 0x80], 0x33
mov qword [rbp - 0x78], r14
mov qword [rbp - 0x70], r12
mov dword [rbp - 0x68], 3
call fcn.140008d50
jmp 0x14002885c
lea rcx, str.._rootWMI
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov r12, rax
test rax, rax
jne 0x140028796
lea rax, [0x1402a214c]
mov qword [rbp - 0x60], r13
lea rdx, str.SysAllocString_Error._._rootWMI_
mov qword [rbp - 0x48], rax
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x58], 0x3a
mov qword [rbp - 0x50], r14
mov dword [rbp - 0x40], 3
call fcn.140008d50
jmp 0x14002885c
mov rcx, qword [rdi + 8]
lea r14, [rdi + 8]
test rcx, rcx
je 0x1400287ac
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [r14], rsi
mov rcx, qword [r15]
xor r9d, r9d
mov qword [rsp + 0x40], r14
xor r8d, r8d
mov qword [rsp + 0x38], rsi
mov rdx, r12
mov qword [rsp + 0x30], rsi
mov rax, qword [rcx]
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov rcx, r12
mov r15d, eax
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test r15d, r15d
jns 0x140028824
lea rax, str.__CWmiUtil::InitWmiUtil_
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x28], rax
lea rdx, str.ConnectServer_Error._0x_08x
lea rax, [0x1402a214c]
mov dword [rbp - 0x30], 0x48
mov r8d, r15d
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x38]
mov dword [rbp - 0x18], 3
call fcn.140008d50
jmp 0x14002885c
mov rcx, qword [r14]
xor r9d, r9d
mov dword [rsp + 0x38], esi
xor r8d, r8d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 3
lea edx, [r9 + 0xa]
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rdi + 4], 1
mov esi, 1
mov rdx, rbx
mov ecx, 0xffffffff
lock xadd dword [rbx + 0x10], ecx
mov r15, qword [rsp + 0xf0]
mov r14, qword [rsp + 0xf8]
mov r13, qword [rsp + 0x100]
mov r12, qword [rsp + 0x130]
mov rbx, qword [rsp + 0x120]
sub ecx, 1
jg 0x1400288a0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, esi
mov rsi, qword [rsp + 0x128]
add rsp, 0x108
pop rdi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002ad0
int3