Function at 0x482580
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.004823e0
test eax, eax
jne 0x4825d4
mov eax, 0x7e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x1c]
mov edx, 0x5424ec
push ecx
push 0x5424fc
mov ecx, eax
call fcn.004b3340
test eax, eax
js 0x482a2a
mov eax, dword [ebp - 0x1c]
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 [0x5404bc]
call esi
lea esp, [esp]
test eax, eax
js 0x482a2a
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 - 0x44], eax
push 0x57b01c
mov esi, dword [esi + 0x50]
push ecx
mov ecx, esi
call dword [0x5404bc]
call esi
mov edi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x30], edi
test edi, edi
js 0x482a13
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push ecx
mov esi, dword [eax]
push 1
push ebx
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x5404bc]
call esi
test eax, eax
js 0x482a13
cmp dword ds:[ebp - 0xc], 0
je 0x482a10
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
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 - 0x3c], 0
call dword [0x5404bc]
call esi
test eax, eax
js 0x482734
mov esi, dword [ebp - 0x24]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4826e5
push dword [0x5b1d70]
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 - 0x3c], ebx
lea ecx, [ebx + 8]
mov dword [ebx], edi
mov dword [ebx + 4], ecx
mov word [ecx + edi], ax
test esi, esi
je 0x48272a
push edi
push esi
push dword [ebx + 4]
call fcn.00521a30
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword ds:[ebp - 0x10]
lea ecx, [ebp - 0x2c]
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 - 0x38], 0
call dword [0x5404bc]
call esi
test eax, eax
js 0x4827c6
mov esi, dword [ebp - 0x24]
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482774
push dword [0x5b1d70]
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 - 0x38], edi
lea ecx, [edi + 8]
mov dword [edi], ebx
mov dword [edi + 4], ecx
mov word [ecx + ebx], ax
test esi, esi
je 0x4827b9
push ebx
push esi
push dword [edi + 4]
call fcn.00521a30
add esp, 0xc
lea eax, ds:[ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
xor ebx, ebx
push ebx
push ebx
mov esi, dword [eax]
push ecx
push ebx
push str.User
mov esi, dword [esi + 0x10]
mov ecx, esi
push eax
call dword [0x5404bc]
call esi
test eax, eax
js 0x482852
mov esi, dword [ebp - 0x24]
mov ecx, esi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482800
push dword [0x5b1d70]
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 0x482848
push edi
push esi
push dword [ebx + 4]
call fcn.00521a30
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
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 [0x5404bc]
call esi
lea ecx, [ecx]
test eax, eax
js 0x4828e6
mov esi, dword [ebp - 0x24]
mov ecx, esi
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482890
push dword [0x5b1d70]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x34], eax
lea eax, [ecx*2 + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor edx, edx
mov eax, dword [ebp - 0x34]
lea ecx, [edi + 8]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov word [ecx + eax], dx
test esi, esi
je 0x4828dc
push eax
push esi
push dword [edi + 4]
call fcn.00521a30
add esp, 0xc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x482963
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x482963
test ebx, ebx
je 0x482963
jmp 0x482900
test edi, edi
je 0x48297e
push 0
push eax
mov eax, dword [ebp - 0x40]
push dword [eax + 4]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x482967
push 0
push esi
mov esi, dword [ebp - 0x40]
push dword [esi]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x482967
push 0
push ebx
push dword [esi + 0xc]
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x482967
mov eax, dword [ebp - 0x18]
push 0
push 0
push dword [ebp - 0x10]
mov esi, dword [eax]
push 0
push 0
push dword [ebp - 0x48]
mov esi, dword [esi + 0x60]
mov ecx, esi
push dword [edi + 4]
push eax
call dword [0x5404bc]
call esi
mov dword [ebp - 0x30], eax
jmp 0x482967
test edi, edi
je 0x48297a
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x48297a
call fcn.004b3960
test ebx, ebx
je 0x482995
lea ecx, [ebx - 8]
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x482998
call fcn.004b3960
jmp 0x482998
or ebx, 0xffffffff
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x4829b1
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4829b1
call fcn.004b3960
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4829ca
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4829ca
call fcn.004b3960
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov eax, dword ds:[ebp - 0x14]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 0
push ecx
mov esi, dword [eax]
push 1
push 0xffffffffffffffff
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x5404bc]
call esi
test eax, eax
jns 0x482696
mov edi, dword [ebp - 0x30]
mov ecx, dword ds:[ebp - 0x44]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x482a2c
call fcn.004b3960
jmp 0x482a2c
mov edi, eax
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x482a48
mov eax, dword ds:[ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x482a5f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x482a76
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4