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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], edx
push eax
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
push 0x500420
push 1
push ebx
push 0x500410
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
js 0x47d4cf
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp - 0x1c]
push ebx
mov esi, dword [eax]
push ebx
push ebx
push ebx
mov esi, dword [esi + 0xc]
push ebx
push ebx
push dword [ecx + 4]
mov ecx, esi
push eax
call dword [0x4fe8dc]
call esi
mov edi, eax
test edi, edi
js 0x47d4cf
mov eax, dword [ebp - 0x20]
push dword [eax + 4]
push str.SELECT_clsid_FROM___Win32Provider_WHERE_Name___s
call sym.ProcessHacker.exe_PhFormatString
add esp, 8
lea edx, [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
push edx
mov esi, dword [eax]
push ebx
push 0x30
push dword [ecx + 4]
mov esi, dword [esi + 0x50]
mov ecx, esi
push 0x5300c4
push eax
call dword [0x4fe8dc]
call esi
mov edi, eax
or ecx, 0xffffffff
test edi, edi
js 0x47d4bc
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 8]
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
mov edi, eax
test edi, edi
js 0x47d402
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x3c]
push ebx
push ebx
push ecx
mov esi, dword [eax]
push ebx
push str.CLSID
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test eax, eax
js 0x47d3e2
mov esi, dword [ebp - 0x34]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d390
push dword [0x54b7b4]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x20], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [ebp - 0x20]
mov ebx, eax
lea eax, [ebx + 8]
xor edx, edx
mov dword [ebx], ecx
mov dword [ebx + 4], eax
mov word [eax + ecx], dx
test esi, esi
je 0x47d3d8
push ecx
push esi
push dword [ebx + 4]
call fcn.004dd620
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test ebx, ebx
je 0x47d402
cmp dword [ebx], 0
je 0x47d402
xor al, al
jmp 0x47d404
mov al, 1
test al, al
jne 0x47d4a0
push 0x522fd8
push 0x507e1c
push dword [ebx + 4]
push str.CLSID_
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
mov dword [ebp - 0x20], eax
push 0
push eax
push 0xfffffffffffffff9
push 0x20019
lea eax, [ebp - 0x1c]
push eax
call sym.ProcessHacker.exe_PhOpenKey
mov edi, eax
or edi, 0x10000000
jl 0x47d488
push 0
push dword [ebp - 0x1c]
call sym.ProcessHacker.exe_PhQueryRegistryString
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x47d47f
push esi
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
test eax, eax
je 0x47d47f
mov dword [ebp - 0x18], eax
test esi, esi
je 0x47d47f
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x47d47f
call fcn.004a2a20
push dword [ebp - 0x1c]
call dword [sym.imp.ntdll.dll_NtClose]
mov edx, dword [ebp - 0x20]
or ecx, 0xffffffff
mov eax, ecx
lock xadd dword [edx - 4], eax
dec eax
jne 0x47d4a3
lea ecx, [edx - 8]
call fcn.004a2a20
or ecx, 0xffffffff
test ebx, ebx
je 0x47d4bc
mov eax, ecx
lock xadd dword [ebx - 4], eax
dec eax
jne 0x47d4bc
lea ecx, [ebx - 8]
call fcn.004a2a20
or ecx, 0xffffffff
mov eax, dword [ebp - 0x28]
lock xadd dword [eax - 4], ecx
dec ecx
jne 0x47d4cf
lea ecx, [eax - 8]
call fcn.004a2a20
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x47d4e6
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 0x47d4fd
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x47d514
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x4fe8dc]
call esi
test edi, edi
js 0x47d520
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4