Function at 0x482d60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x5ac004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.004823e0
test eax, eax
jne 0x482d9a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x18]
mov edx, 0x5424ec
push ecx
push 0x5424fc
mov ecx, eax
call fcn.004b3340
test eax, eax
js 0x48311e
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
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
nop
test eax, eax
js 0x48311e
lea eax, [edi + 0x8c]
push eax
push str.SELECT_Namespace_Provider_User_FROM_Msft_Providers_WHERE_HostProcessIdentifier_
call sym.ProcessHacker.exe_PhConcatStrings2
mov edi, eax
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push ecx
push 0
push 0x30
mov esi, dword [eax]
push dword [edi + 4]
mov dword [ebp - 0x34], edi
push 0x57b01c
mov esi, dword [esi + 0x50]
mov ecx, esi
push eax
call dword [0x5404bc]
nop
call esi
test eax, eax
js 0x48310b
push dword [0x5b1d74]
push 0xc
call sym.ProcessHacker.exe_PhCreateObject
push 4
mov ebx, eax
push 4
push dword [0x5b1dac]
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 - 0x10]
push ecx
lea ecx, [ebp - 0xc]
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 [0x5404bc]
call esi
nop
test eax, eax
js 0x48310b
jmp 0x482e90
cmp dword [ebp - 8], 0
je 0x483108
push 0x10
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
lea ecx, [ebp - 0x28]
xor eax, eax
push 0
push 0
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0xc]
push ecx
push 0
push str.Namespace
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x5404bc]
call esi
test eax, eax
js 0x482f48
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 0x30], eax
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482ef0
push dword [0x5b1d70]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x2c], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [ebp - 0x2c]
mov esi, eax
lea eax, [esi + 8]
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x482f3b
push ecx
push eax
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [edi + 4], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x28]
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 [0x5404bc]
call esi
test eax, eax
js 0x482fd8
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 0x2c], eax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x482f80
push dword [0x5b1d70]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x30], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [ebp - 0x30]
mov esi, eax
lea eax, [esi + 8]
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x482fcc
push ecx
push eax
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [edi], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x28]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push str.User
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x5404bc]
call esi
test eax, eax
js 0x483068
mov eax, dword [ebp - 0x20]
mov ecx, eax
mov dword [ebp - 0x2c], eax
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x483010
push dword [0x5b1d70]
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
mov dword [ebp - 0x30], eax
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [ebp - 0x30]
mov esi, eax
lea eax, [esi + 8]
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x48305b
push ecx
push eax
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
lea eax, [ebp - 0x28]
mov dword [edi + 0xc], esi
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov ecx, dword ds:[edi + 4]
test ecx, ecx
je 0x4830a4
mov edx, dword [edi]
test edx, edx
je 0x4830a4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
call fcn.00482aa0
test eax, eax
js 0x4830a4
mov eax, dword [ebp - 0x2c]
mov dword [edi + 8], eax
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
cmp ecx, eax
jne 0x4830cc
add eax, eax
mov dword [ebx + 4], eax
shl eax, 2
push eax
push dword [ebx + 8]
push 4
push dword [0x5b1dac]
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 - 0x10]
push ecx
lea ecx, [ebp - 0xc]
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 [0x5404bc]
call esi
lea ebx, [ebx]
test eax, eax
jns 0x482e90
mov edi, dword [ebp - 0x34]
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x48311e
call fcn.004b3960
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x483135
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x48314c
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x483168
mov ecx, dword ds:[edx]
push edx
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret