Function at 0x482aa0
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
mov dword [ebp - 0x44], eax
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x3c], edx
push edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
call fcn.004823e0
test eax, eax
jne 0x482af4
lea eax, [ebx + 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 - 0x20]
mov edx, 0x5424ec
push ecx
push 0x5424fc
mov ecx, eax
call fcn.004b3340
mov edi, eax
test edi, edi
js 0x482cdb
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x38]
push 0
mov esi, dword [eax]
push 0
push 0
push 0
mov esi, dword [esi + 0xc]
push 0
push 0
push dword [ecx + 4]
mov ecx, esi
push eax
call dword [0x5404bc]
call esi
mov edi, eax
test edi, edi
js 0x482cdb
mov eax, dword [ebp - 0x3c]
push dword [eax + 4]
push str.SELECT_clsid_FROM___Win32Provider_WHERE_Name___s
call sym.ProcessHacker.exe_PhFormatString
add esp, 8
lea edx, [ebp - 0x18]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], ecx
push edx
mov esi, dword [eax]
push 0
push 0x30
push dword [ecx + 4]
mov esi, dword [esi + 0x50]
mov ecx, esi
push 0x57b01c
push eax
call dword [0x5404bc]
call esi
mov edi, eax
or eax, 0xffffffff
test edi, edi
js 0x482cc8
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
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
mov edi, eax
test edi, edi
js 0x482cc5
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push 0
push 0
push ecx
mov esi, dword [eax]
push 0
push str.CLSID
push eax
mov esi, dword [esi + 0x10]
mov ecx, esi
call dword [0x5404bc]
mov edi, edi
call esi
test eax, eax
js 0x482c06
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x482bf6
push eax
call sym.ProcessHacker.exe_PhCreateString
mov dword [ebp - 0x10], eax
lea eax, ds:[ebp - 0x34]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov esi, dword ds:[ebp - 0x10]
test esi, esi
je 0x482cc5
push 0x56aed0
push 0x54a674
push dword ds:[esi + 4]
push str.CLSID_
push 4
call sym.ProcessHacker.exe_PhConcatStrings
add esp, 0x14
mov dword [ebp - 0x3c], eax
push 0
push eax
push 0xfffffffffffffff9
push 0x20019
lea eax, [ebp - 0x10]
push eax
call sym.ProcessHacker.exe_PhOpenKey
mov edi, eax
or edi, 0x10000000
jl 0x482ca6
push 0
push dword [ebp - 0x10]
call sym.ProcessHacker.exe_PhQueryRegistryString
mov ebx, eax
test ebx, ebx
je 0x482c9b
push ebx
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov edi, edi
test eax, eax
je 0x482c9b
mov ecx, ebx
mov ebx, eax
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x482c9b
call fcn.004b3960
push dword ds:[ebp - 0x10]
call dword [sym.imp.ntdll.dll_NtClose]
push dword [ebp - 0x3c]
call sym.ProcessHacker.exe_PhDereferenceObject
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x482cc5
lea esp, [esp]
call fcn.004b3960
or eax, 0xffffffff
mov ecx, dword [ebp - 0x38]
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x482cdb
call fcn.004b3960
mov ecx, dword ds:[ebp - 0x18]
test ecx, ecx
je 0x482cf4
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 0x482d0b
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x482d28
mov eax, dword ds:[ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5404bc]
call esi
test edi, edi
js 0x482d31
mov eax, dword [ebp - 0x44]
mov dword [eax], ebx
mov ecx, dword ds:[ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051e068
mov esp, ebp
pop ebp
ret 4