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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x2c], ecx
push eax
push 0x500420
push 1
push 0
push 0x500410
mov edi, edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
test ebx, ebx
js 0x47d224
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
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
mov ebx, eax
test ebx, ebx
js 0x47d224
push edi
push str.SELECT_Namespace_Provider_User___PATH_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
call sym.ProcessHacker.exe_PhConcatStrings2
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push 0
push 0x30
mov esi, dword [ecx]
push dword [eax + 4]
mov dword [ebp - 0x30], eax
push 0x5300c4
mov esi, dword [esi + 0x50]
push ecx
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ebx, eax
or edi, 0xffffffff
mov dword [ebp - 0x24], ebx
test ebx, ebx
js 0x47d211
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], 0
push ecx
mov esi, dword [eax]
push 1
push edi
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d211
cmp dword [ebp - 0x10], 0
je 0x47d20e
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x44]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push str.Namespace
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
mov dword [ebp - 0x1c], 0
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47cf73
mov esi, dword [ebp - 0x3c]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47cf24
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea edi, [ecx + ecx]
lea eax, [edi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x1c], ebx
lea ecx, [ebx + 8]
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov word [ecx + edi], ax
test esi, esi
je 0x47cf69
push edi
push esi
push dword [ebx + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x44]
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
mov dword [ebp - 0xc], 0
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47cfff
mov esi, dword [ebp - 0x3c]
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x47cfb0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47cfb0
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + ecx]
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor eax, eax
mov dword [ebp - 0xc], edi
lea ecx, [edi + 8]
mov dword [edi], ebx
mov dword [edi + 4], ecx
mov word [ecx + ebx], ax
test esi, esi
je 0x47cff5
push ebx
push esi
push dword [edi + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x44]
xor ebx, ebx
push ebx
push ebx
mov esi, dword [eax]
push ecx
push ebx
push 0x5300f4
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d07c
mov esi, dword [ebp - 0x3c]
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d030
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea edi, [ecx + ecx]
lea eax, [edi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov word [ecx + edi], ax
test esi, esi
je 0x47d072
push edi
push esi
push dword [ebx + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x44]
xor edi, edi
push edi
push edi
mov esi, dword [eax]
push ecx
push edi
push str.__PATH
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d106
mov esi, dword [ebp - 0x3c]
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d0b0
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x28], eax
lea eax, [ecx*2 + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor edx, edx
mov eax, dword [ebp - 0x28]
lea ecx, [edi + 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov word [ecx + eax], dx
test esi, esi
je 0x47d0fc
push eax
push esi
push dword [edi + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp + 8]
push 0
push dword [ebp - 0x1c]
push dword [eax + 4]
call sym.ProcessHacker.exe_PhEqualStringRef
mov esi, dword [ebp - 0xc]
test al, al
je 0x47d16a
mov eax, dword [ebp + 8]
push 0
push esi
push dword [eax]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x47d16a
mov eax, dword [ebp + 8]
push 0
push ebx
push dword [eax + 0xc]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x47d16a
mov eax, dword [ebp - 0x18]
push 0
push 0
push dword [ebp - 8]
mov esi, dword [eax]
push 0
push 0
push dword [ebp - 0x2c]
mov esi, dword [esi + 0x60]
mov ecx, esi
push dword [edi + 4]
push eax
call dword [0x4fe8dc]
call esi
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x24], eax
test edi, edi
je 0x47d185
lea ecx, [edi - 8]
or edi, 0xffffffff
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47d188
call fcn.004a2a20
jmp 0x47d188
or edi, 0xffffffff
test ebx, ebx
je 0x47d19e
lea ecx, [ebx - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47d19e
call fcn.004a2a20
test esi, esi
je 0x47d1b4
lea ecx, [esi - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47d1b4
call fcn.004a2a20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47d1cd
lea ecx, [eax - 8]
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47d1cd
call fcn.004a2a20
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], 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 0x47cee5
mov ebx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x30]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], edi
dec edi
jne 0x47d224
call fcn.004a2a20
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x47d23b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x47d252
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x47d269
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4