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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
push ebx
xor eax, eax
push esi
push edi
push eax
push eax
mov edi, edx
mov dword [ebp - 0x1c], eax
mov bh, al
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1000544e
xor al, al
jmp 0x100056bf
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.ROOTCIMV2
call esi
push edi
mov dword [ebp - 0x20], eax
call esi
mov edi, eax
push str.executablepath
mov dword [ebp - 0x14], edi
call esi
mov dword [ebp - 0x38], eax
xor eax, eax
push eax
push eax
push eax
push 3
pop ecx
push ecx
push eax
push eax
push eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x1c]
push eax
push 0x10006548
push 1
push 0
push 0x10006618
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x10005650
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
xor edx, edx
push edx
mov ecx, dword [eax]
push edx
push edx
push edx
push edx
push edx
push dword [ebp - 0x20]
push eax
call dword [ecx + 0xc]
test eax, eax
js 0x10005647
xor eax, eax
push eax
push eax
push 3
pop ecx
push ecx
push ecx
push eax
push eax
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x1000563e
push 0x10007bf0
call esi
lea edx, [ebp - 0x18]
mov edi, eax
mov eax, dword [ebp - 0x10]
push edx
push 0
push 0x30
push dword [ebp - 0x14]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
push edi
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
js 0x1000563b
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 8]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0xc], 0
je 0x10005632
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 3
pop edi
test eax, eax
js 0x10005632
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x34]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.executablepath
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x10005629
mov ax, word [ebp - 0x34]
cmp ax, 8
jne 0x1000559e
cmp dword [ebp - 0x2c], 0
je 0x1000559e
push dword [ebp - 0x2c]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x1000559a
push 0x104
push dword [ebp - 0x2c]
push dword [ebp + 0x10]
call esi
xor bl, bl
jmp 0x100055ef
mov ax, word [ebp - 0x34]
cmp ax, di
jne 0x100055ed
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFiberEx]
push dword [ebp - 0x2c]
lea eax, [ebp - 0x244]
push 0x10007bf8
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
add esp, 0x10
lea eax, [ebp - 0x244]
push 0x104
push eax
push dword [ebp + 0x10]
call esi
jmp 0x100055ef
mov bl, 1
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov bh, 1
test bl, bl
je 0x10005632
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 8]
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp dword [ebp - 0xc], 0
jne 0x1000553a
jmp 0x10005632
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp - 0x20]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor eax, eax
push eax
push eax
push 1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateFiberEx]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor eax, eax
push eax
push eax
push 1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateFiberEx]
push dword [ebp - 0x38]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor eax, eax
push eax
push eax
push 1
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateFiberEx]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, bh
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret