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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10147c01
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10189710]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x10189710]
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 0x10120b22
push ebx
mov byte [eax], bl
push ebx
mov dword [esi], 1
call dword [sym.imp.ole32.dll_CoInitializeEx]
cmp eax, 0x80070057
je 0x10120b29
cmp eax, 0x8007000e
je 0x10120b29
cmp eax, 0x8000ffff
je 0x10120b29
cmp eax, 0x80010106
je 0x10120b29
cmp eax, ebx
jge 0x10120b29
push eax
push str._GEN__Failed_to_initialize_COM_library._Error_code__0x_x
push edi
call fcn.10127dc0
add esp, 0xc
xor eax, eax
jmp 0x10120f1e
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 0x10120b6d
cmp eax, 0x80010119
je 0x10120b6d
push eax
push str._GEN__Failed_to_initialize_security._Error_code__0x_x
push edi
call fcn.10127dc0
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x10120f1e
lea eax, [esp + 0x14]
push eax
push 0x1014d1a4
push 1
push ebx
push 0x1014d274
mov dword [esi], 5
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov dword [esi], 6
jge 0x10120ba1
push eax
push str._GEN__CoCreateInstance_of_CLSID_WbemLocator_Failed._Error_code__0x_x
jmp 0x10120b57
lea ecx, [esp + 0x18]
push ecx
mov edi, str.ROOTCIMV2
mov dword [esp + 0x20], ebx
mov dword [esi], 7
call fcn.1000ad90
mov dword [esp + 0x268], ebx
mov eax, dword [eax]
cmp eax, ebx
je 0x10120bcb
mov ecx, dword [eax]
jmp 0x10120bcd
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.1000ae30
test ebx, ebx
jge 0x10120c33
mov ecx, dword [esp + 0x20]
push ebx
push str._GEN__Could_not_ConnectServer._Error_code__0x_x
push ecx
call fcn.10127dc0
mov eax, dword [esp + 0x20]
add esp, 0xc
test eax, eax
je 0x10120b60
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x10120f1e
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 0x10120c9a
mov edx, dword [esp + 0x20]
push eax
push str._GEN__Could_not_CoSetProxyBlanket._Error_code__0x_x
push edx
call fcn.10127dc0
add esp, 0xc
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10120c79
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10120b60
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
jmp 0x10120f1e
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.10127dc0
add esp, 0xc
lea edx, [esp + 0x4c]
push edx
lea ebx, [esp + 0x38]
call fcn.1000ad00
mov edi, eax
push 0x10156da8
lea ebx, [esp + 0x1c]
mov dword [esp + 0x26c], 1
call fcn.1000ad00
mov byte [esp + 0x268], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x10120cfa
mov ecx, dword [ecx]
jmp 0x10120cfc
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x10120d06
mov edx, dword [eax]
jmp 0x10120d08
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.1000ae30
lea edi, [esp + 0x34]
mov dword [esp + 0x268], 0xffffffff
call fcn.1000ae30
test ebx, ebx
jge 0x10120d64
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.10127dc0
add esp, 0x14
jmp 0x10120c69
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], 0
mov dword [esi], 0xb
test eax, eax
je 0x10120eb1
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 0x10120ead
cmp dword [esp + 0x24], 0
je 0x10120ead
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 0x10120f61
mov ax, word [esp + 0x3c]
cmp ax, 8
jne 0x10120f42
mov eax, dword [esp + 0x44]
test eax, eax
je 0x10120f61
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 0x10120f61
mov eax, dword [esp + 0x44]
mov dword [esi], 0x92
cmp byte [eax + 1], 0
jne 0x10120f61
cmp byte [eax + 3], 0
jne 0x10120f61
push eax
lea ebx, [esp + 0x1c]
mov dword [esi], 0x93
call fcn.10073be0
mov ebx, dword [esp + 0x1c]
add esp, 4
test ebx, ebx
je 0x10120f61
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 0x10120e86
call fcn.10120a40
push ebx
call fcn.10128243
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 0x10120ecb
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 0x10120ee5
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 0x10120ef7
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 0x10120f0d
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.10127db1
mov esp, ebp
pop ebp
ret
cmp ax, 1
je 0x10120f61
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.1006ed90
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 0x10120d84
jmp 0x10120eb1