Function at 0x47d530
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0x500420
push 1
push 0
push 0x500410
mov edi, ecx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x47d8c6
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
mov esi, dword [eax]
push 0
push 0
push 0
mov esi, dword [esi + 0xc]
mov ecx, esi
push 0
push str.rootCIMV2
push eax
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d8c6
lea eax, [edi + 0x8c]
push eax
push str.SELECT_Namespace_Provider_User_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
call sym.ProcessHacker.exe_PhConcatStrings2
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
push edx
push 0
push 0x30
mov esi, dword [ecx]
push dword [eax + 4]
mov dword [ebp - 0x24], eax
push 0x5300c4
mov esi, dword [esi + 0x50]
push ecx
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d8ab
push dword [0x54b7b0]
push 0xc
call sym.ProcessHacker.exe_PhCreateObject
push 4
mov ebx, eax
push 4
push dword [0x54b674]
mov dword [ebx], 0
mov dword [ebx + 4], 1
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebx + 8], eax
lea ecx, [ebp - 8]
mov eax, dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
mov esi, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d8ae
lea esp, [esp]
cmp dword [ebp - 8], 0
je 0x47d8ae
push 0x10
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
xor eax, eax
push eax
push eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
push eax
push 0
push str.Namespace
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d6f8
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
jmp 0x47d6a0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d6a0
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edx, dword [ebp - 0x18]
mov esi, eax
lea ecx, [esi + 8]
xor eax, eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47d6eb
push edx
push eax
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x38]
mov dword [edi + 4], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x38]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push str.Provider
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d787
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d730
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x1c], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edx, dword [ebp - 0x1c]
mov esi, eax
lea ecx, [esi + 8]
xor eax, eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47d77b
push edx
push eax
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x38]
mov dword [edi], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x38]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push 0x5300f4
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d818
mov eax, dword [ebp - 0x30]
mov ecx, eax
mov dword [ebp - 0x18], eax
lea edx, [ecx + 2]
jmp 0x47d7c0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d7c0
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x1c], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edx, dword [ebp - 0x1c]
mov esi, eax
lea ecx, [esi + 8]
xor eax, eax
mov dword [esi], edx
mov dword [esi + 4], ecx
mov word [ecx + edx], ax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47d80b
push edx
push eax
push dword [esi + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x38]
mov dword [edi + 0xc], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x47d84b
mov edx, dword [edi]
test edx, edx
je 0x47d84b
lea eax, [ebp - 0x20]
push eax
call fcn.0047d280
test eax, eax
js 0x47d84b
mov eax, dword [ebp - 0x20]
mov dword [edi + 8], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
cmp ecx, eax
jne 0x47d873
add eax, eax
mov dword [ebx + 4], eax
shl eax, 2
push eax
push dword [ebx + 8]
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [ebx]
mov dword [ebx + 8], eax
mov eax, dword [ebx + 8]
mov dword [eax + ecx*4], edi
lea ecx, [ebp - 8]
inc dword [ebx]
mov eax, dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], 0
push ecx
mov esi, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
jns 0x47d640
jmp 0x47d8ae
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47d8c9
call fcn.004a2a20
jmp 0x47d8c9
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x47d8e0
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x47d8f7
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x47d90e
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret