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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009de60
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x100ef034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x2c], ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x40], ebx
push 2
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
push 0
mov dword [ebp - 0x3c], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
sete al
mov byte [ebx], al
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x10046072
mov edi, dword [edi]
push 0xc
call fcn.100768b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x100460ae
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x100460b0
test edi, edi
jne 0x100466ec
jmp 0x100460b0
xor esi, esi
mov byte [ebp - 4], 0
mov dword [ebx + 4], esi
test esi, esi
je 0x100466ec
mov byte [ebp - 4], 2
mov edi, dword [ebp + 0x14]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x100460d0
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [edi + 0x10]
mov dword [ebp - 0x38], ecx
lea ecx, [ebp - 0x5c]
push eax
call fcn.10042860
mov byte [ebp - 4], 3
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10046f10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 8
jb 0x10046106
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
push 0xc
call fcn.100768b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x10046145
push dword [ebp - 0x30]
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x10046147
cmp dword [ebp - 0x30], eax
jne 0x100466ec
jmp 0x10046147
xor esi, esi
mov byte [ebp - 4], 4
mov dword [ebx + 8], esi
test esi, esi
je 0x100466ec
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.10038340
mov byte [ebp - 4], 8
cmp byte [ebp - 0x44], 0
je 0x10046174
lea ecx, [ebp - 0x5c]
call fcn.10038340
cmp dword [edi + 0x14], 8
jb 0x1004617c
mov edi, dword [edi]
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x5c]
push dword [eax]
push edi
call fcn.10042610
mov byte [ebp - 4], 0xf
add esp, 4
lea ecx, [ebp - 0x28]
push ecx
mov ecx, eax
call fcn.10046f10
mov edi, eax
mov byte [ebp - 4], 0x10
cmp dword [edi + 0x14], 8
jb 0x100461aa
mov edi, dword [edi]
push 0xc
call fcn.100768b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0x11
test esi, esi
je 0x100461e6
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x100461e8
test edi, edi
jne 0x100466f6
jmp 0x100461e8
xor esi, esi
mov byte [ebp - 4], 0x10
mov dword [ebx + 0xc], esi
test esi, esi
je 0x100466f6
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x28]
call fcn.10038340
mov byte [ebp - 4], 0x14
cmp byte [ebp - 0x44], 0
je 0x10046215
lea ecx, [ebp - 0x5c]
call fcn.10038340
mov edi, dword [ebp - 0x3c]
cmp dword [edi + 0x14], 8
jb 0x10046220
mov edi, dword [edi]
push 0xc
call fcn.100768b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0x1b
test esi, esi
je 0x1004625c
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x1004625e
test edi, edi
jne 0x100466ec
jmp 0x1004625e
xor esi, esi
mov byte [ebp - 4], 0x14
mov dword [ebx + 0x10], esi
test esi, esi
je 0x100466ec
mov byte [ebp - 4], 0x1c
lea esi, [ebx + 0x14]
mov dword [ebp - 0x2c], esi
mov dword [esi], 0
mov byte [ebp - 4], 0x1e
lea eax, [ebx + 0x18]
mov dword [ebp - 0x3c], eax
mov dword [eax], 0
mov byte [ebp - 4], 0x20
mov dword [ebx + 0x1c], 0
call fcn.100468f0
push esi
push 0x100b9500
push 1
push 0
push 0x100b9510
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x1004638c
mov dword [ebx + 0x1c], esi
call fcn.10055620
cmp byte [eax + 0x1c], 0
je 0x100466c5
call fcn.10055620
mov edi, eax
call fcn.1003aaa0
test eax, eax
je 0x10046700
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x23
lea ecx, [ebp - 0x34]
push 0x32
push 0x100c92a0
call fcn.1003f390
push esi
lea ecx, [ebp - 0x34]
call fcn.10055950
mov esi, eax
call fcn.1003aaa0
test eax, eax
je 0x10046700
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0x26
lea ecx, [ebp - 0x30]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
push esi
sub esp, 8
mov ecx, edi
call fcn.10055700
mov byte [ebp - 4], 0x23
or edi, 0xffffffff
mov edx, dword [ebp - 0x30]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10046367
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x20
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x100466c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100466c5
push 0xc
call fcn.100768b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0x2b
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
test esi, esi
je 0x100463ca
push 0x100c9308
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x100466ec
jmp 0x100463cc
xor esi, esi
mov byte [ebp - 4], 0x20
mov dword [ebp - 0x30], esi
test esi, esi
je 0x100466ec
mov byte [ebp - 4], 0x2c
lea eax, [ebx + 4]
push eax
lea ecx, [ebp - 0x30]
call fcn.100471b0
push 0xc
call fcn.100768b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0x2d
test esi, esi
je 0x10046423
push 0x100c8670
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call edi
mov dword [esi], eax
test eax, eax
je 0x100466ec
jmp 0x10046425
xor esi, esi
mov byte [ebp - 4], 0x2c
mov dword [ebp - 0x38], esi
test esi, esi
je 0x100466ec
mov byte [ebp - 4], 0x2e
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.100471b0
mov byte [ebp - 4], 0x2c
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x1004648a
mov eax, dword [esi]
test eax, eax
je 0x10046468
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x1004647f
push eax
call fcn.1007686c
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.100768a6
add esp, 8
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], 0
cmp dword [eax + 0x14], 8
jb 0x1004649f
mov eax, dword [eax]
mov dword [ebp - 0x34], eax
push 0xc
call fcn.100768b4
mov esi, eax
add esp, 4
mov dword [ebp - 0x2c], esi
mov byte [ebp - 4], 0x2f
test esi, esi
je 0x100464de
push dword [ebp - 0x34]
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x100464e0
cmp dword [ebp - 0x34], eax
jne 0x100466ec
jmp 0x100464e0
xor esi, esi
mov byte [ebp - 4], 0x2c
mov dword [ebp - 0x38], esi
test esi, esi
je 0x100466ec
mov byte [ebp - 4], 0x30
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x30]
call fcn.100471b0
mov byte [ebp - 4], 0x2c
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x10046542
mov eax, dword [esi]
test eax, eax
je 0x10046520
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10046537
push eax
call fcn.1007686c
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.100768a6
add esp, 8
mov eax, dword [ebx + 8]
mov dword [ebp - 0x38], 0
test eax, eax
je 0x10046561
mov eax, dword [eax]
test eax, eax
je 0x10046561
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x1004656d
lea eax, [ebx + 4]
push eax
lea ecx, [ebx + 8]
call fcn.10047280
mov ecx, dword [ebx + 0x14]
mov esi, dword [ebp - 0x30]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
test esi, esi
je 0x10046580
mov eax, dword [esi]
jmp 0x10046582
xor eax, eax
push dword [ebp - 0x3c]
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call edx
mov dword [ebp - 0x3c], eax
test eax, eax
jns 0x1004666f
mov dword [ebx + 0x1c], eax
call fcn.10055620
cmp byte [eax + 0x1c], 0
je 0x10046679
call fcn.10055620
mov dword [ebp - 0x2c], eax
call fcn.1003aaa0
test eax, eax
je 0x10046700
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 0x35
lea ecx, [ebp - 0x34]
push 0x2f
push str.Could_not_connect_to_WMI_provider._Error_code:
call fcn.1003f390
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x34]
call fcn.10055950
mov dword [ebp - 0x3c], eax
call fcn.1003aaa0
test eax, eax
je 0x10046700
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x38
lea ecx, [ebp - 0x38]
push 0
push 0x100c62fc
call fcn.1003f390
push ecx
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
sub esp, 8
call fcn.10055700
mov byte [ebp - 4], 0x35
mov eax, edi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004664f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x2c
mov eax, edi
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10046679
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x10046679
push dword [ebx + 0x18]
mov ecx, ebx
call fcn.10046a40
mov byte [ebp - 4], 0x20
test esi, esi
je 0x100466c5
lock xadd dword [esi + 8], edi
dec edi
jne 0x100466be
mov eax, dword [esi]
test eax, eax
je 0x1004669c
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x100466b3
push eax
call fcn.1007686c
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.100768a6
add esp, 8
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007685e
mov esp, ebp
pop ebp
ret 0x14
push 0x8007000e
call fcn.1005f9e0
push 0x8007000e
call fcn.1005f9e0
push 0x80004005
call fcn.100374f0
int3