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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0xa9a2d1
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0xb196ec]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0xb196ec]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor ebx, ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], esi
cmp eax, ebx
je 0xa6d0a2
push ebx
mov byte [eax], bl
push ebx
mov dword [esi], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0xa6d0a9
cmp eax, 0x8007000e
je 0xa6d0a9
cmp eax, 0x8000ffff
je 0xa6d0a9
cmp eax, 0x80010106
je 0xa6d0a9
cmp eax, ebx
jge 0xa6d0a9
push eax
push str._GEN__Failed_to_initialize_COM_library._Error_code__0x_x
push edi
call fcn.00a78f30
add esp, 0xc
xor eax, eax
jmp 0xa6d49e
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
mov dword [esi], 2
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
mov dword [esi], 4
jge 0xa6d0ed
cmp eax, 0x80010119
je 0xa6d0ed
push eax
push str._GEN__Failed_to_initialize_security._Error_code__0x_x
push edi
call fcn.00a78f30
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0xa6d49e
lea eax, [esp + 0x14]
push eax
push 0xaa13a4
push 1
push ebx
push 0xaa1474
mov dword [esi], 5
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [esi], 6
jge 0xa6d121
push eax
push str._GEN__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0xa6d0d7
lea ecx, [esp + 0x18]
push ecx
mov edi, str.ROOTCIMV2
mov dword [esp + 0x20], ebx
mov dword [esi], 7
call fcn.0087b190
mov dword [esp + 0x268], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0xa6d14b
mov ecx, dword [eax]
jmp 0xa6d14d
xor ecx, ecx
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
lea edi, [esp + 0x1c]
push edi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x268], 0xffffffff
call fcn.0087b230
test ebx, ebx
jge 0xa6d1b3
mov ecx, dword [esp + 0x20]
push ebx
push str._GEN__Could_not_ConnectServer._Error_code__0x_x
push ecx
call fcn.00a78f30
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0xa6d0e0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0xa6d49e
mov ecx, dword [esp + 0x1c]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push ecx
mov dword [esi], 8
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0xa6d21a
mov edx, dword [esp + 0x20]
push eax
push str._GEN__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edx
call fcn.00a78f30
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0xa6d1f9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa6d0e0
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0xa6d49e
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x50]
push str.SELECT__FROM__s
push ecx
mov dword [esp + 0x1c], 0
mov dword [esi], 0xa
call fcn.00a78f30
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
lea ebx, [esp + 0x38]
call fcn.0087b100
mov edi, eax
push 0xab6240
lea ebx, [esp + 0x1c]
mov dword [esp + 0x26c], 1
call fcn.0087b100
mov byte [esp + 0x268], 2
mov ecx, dword [edi]
test ecx, ecx
je 0xa6d27a
mov ecx, dword [ecx]
jmp 0xa6d27c
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0xa6d286
mov edx, dword [eax]
jmp 0xa6d288
xor edx, edx
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
lea ebx, [esp + 0x10]
push ebx
push 0
push 0x30
push ecx
push edx
push eax
mov eax, dword [edi + 0x50]
call eax
lea edi, [esp + 0x18]
mov ebx, eax
call fcn.0087b230
lea edi, [esp + 0x34]
mov dword [esp + 0x268], 0xffffffff
call fcn.0087b230
test ebx, ebx
jge 0xa6d2e4
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
push ebx
push ecx
push edx
push str._GEN__Query_for__S_from__s_failed._Error_code__0x_x
push eax
call fcn.00a78f30
add esp, 0x14
jmp 0xa6d1e9
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esi], 0xb
test eax, eax
je 0xa6d431
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x28]
push edx
push 1
mov dword [esp + 0x2c], 0
mov dword [esi], 0xd
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [esp + 0x20], 0
je 0xa6d42d
cmp dword [esp + 0x24], 0
je 0xa6d42d
lea ecx, [esp + 0x3c]
push ecx
mov dword [esi], 0xe
call edi
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
mov dword [esi], 0x8d
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push eax
call edx
mov dword [esi], 0x8e
test eax, eax
jl 0xa6d4e1
mov ax, word [esp + 0x3c]
cmp ax, 8
jne 0xa6d4c2
mov eax, dword [esp + 0x44]
test eax, eax
je 0xa6d4e1
push eax
mov dword [esi], 0x8f
mov dword [esp + 0x1c], 0
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov dword [esi], 0x91
test eax, eax
jbe 0xa6d4e1
mov eax, dword [esp + 0x44]
mov dword [esi], 0x92
cmp byte [eax + 1], 0
jne 0xa6d4e1
cmp byte [eax + 3], 0
jne 0xa6d4e1
push eax
lea ebx, [esp + 0x1c]
mov dword [esi], 0x93
call fcn.00970520
mov ebx, dword [esp + 0x1c]
add esp, 4
test ebx, ebx
je 0xa6d4e1
mov dword [esi], 0x94
mov esi, dword [esp + 0x38]
mov edx, esi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0xa6d406
call 0xa6cfc0
push ebx
call fcn.00a78fec
add esp, 4
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov dword [esi], 0x10
test ecx, ecx
je 0xa6d44b
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esi], 0x11
test ecx, ecx
je 0xa6d465
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov eax, dword [esp + 0x10]
mov dword [esi], 0x12
test eax, eax
je 0xa6d477
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
mov dword [esi], 0x13
test eax, eax
je 0xa6d48d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esi], 0x14
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 1
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.00a78f21
mov esp, ebp
pop ebp
ret
cmp ax, 1
je 0xa6d4e1
mov ecx, dword [esp + 0x28]
movzx eax, ax
push eax
push ecx
push ebx
push str._WMI__WItemName:__S___Table:__s___Type_vt_:_u
push 0
call fcn.0096a780
add esp, 0x14
lea edx, [esp + 0x3c]
push edx
mov dword [esi], 0xf
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0xa6d304
jmp 0xa6d431