Function at 0x40911e
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x46432a
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x474194]
xor eax, esp
mov dword [esp + 0x100], eax
push ebx
push esi
push edi
mov eax, dword [0x474194]
xor eax, esp
push eax
lea eax, [esp + 0x118]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x1c]
push eax
push 0x46748c
push 1
push ebx
push 0x4676cc
mov dword [esp + 0x134], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
mov eax, dword [esp + 0x1c]
jl 0x4094d0
cmp eax, ebx
je 0x4094d0
mov dword [esp + 0x18], ebx
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push 0x80
push ebx
push ebx
push ebx
push str.rootcimv2
mov byte [esp + 0x140], 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, ebx
mov eax, dword [esp + 0x18]
jl 0x4094c4
cmp eax, ebx
je 0x4094c4
xor eax, eax
push 0xbc
mov word [esp + 0x50], ax
lea eax, [esp + 0x52]
push ebx
push eax
call fcn.00456240
push dword [ebp + 8]
lea eax, [esp + 0x5c]
push str.SELECT_ParentProcessId_FROM_Win32_Process_WHERE_ProcessId___u
push 0xbd
push eax
call fcn.00409069
add esp, 0x1c
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x10]
push edx
push ebx
push 0x20
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x130], 2
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov esi, 0x46c048
push esi
push eax
call dword [ecx + 0x50]
cmp eax, ebx
mov eax, dword [esp + 0x10]
jl 0x4094b7
cmp eax, ebx
je 0x4094b7
mov dword [esp + 0x14], ebx
lea edx, [esp + 0x44]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push 0xffffffffffffffff
mov byte [esp + 0x130], 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov ecx, dword [esp + 0x14]
cmp eax, ebx
jl 0x40949c
cmp ecx, ebx
je 0x40949c
xor eax, eax
lea edi, [esp + 0x24]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
push ebx
push str.ParentProcessId
mov byte [esp + 0x134], 4
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
cmp eax, ebx
jge 0x409300
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x120], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x4092c4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4092da
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4092ef
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x120], 0xffffffff
mov eax, dword [esp + 0x1c]
jmp 0x4094d8
cmp dword [esp + 0x20], ebx
je 0x409432
push dword [esp + 0x2c]
lea eax, [esp + 0x50]
push str.SELECT_Caption_FROM_Win32_Process_WHERE_ProcessId___u
push 0xbd
push eax
call fcn.00409069
mov eax, dword [esp + 0x20]
add esp, 0x10
cmp eax, ebx
je 0x409337
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push ebx
push 0x20
lea edx, [esp + 0x58]
push edx
push esi
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jl 0x4092a3
cmp dword [esp + 0x10], ebx
je 0x4092a3
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x409373
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x18]
push edx
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
cmp eax, ebx
jl 0x4092a3
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x4092a3
xor eax, eax
lea edi, [esp + 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
push ebx
lea edx, [esp + 0x3c]
push edx
push ebx
push str.Caption
mov byte [esp + 0x134], 5
mov eax, dword [ecx]
push ecx
call dword [eax + 0x10]
cmp eax, ebx
jge 0x4093e1
lea eax, [esp + 0x34]
push eax
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
call esi
lea eax, [esp + 0x24]
push eax
call esi
jmp 0x4092ae
mov ecx, dword [esp + 0x3c]
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x4093ea
sub eax, esi
sar eax, 1
lea edi, [ecx + eax*2 + 2]
cmp ecx, edi
je 0x409413
mov esi, dword [esp + 0x20]
mov eax, ecx
mov cl, byte [eax]
add eax, 2
mov byte [esi], cl
inc esi
cmp eax, edi
jne 0x409407
push str.explorer.exe
push dword [esp + 0x24]
call fcn.004517e0
pop ecx
test eax, eax
pop ecx
lea eax, [esp + 0x34]
push eax
jne 0x4093cd
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [esp + 0x120], 2
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x409457
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], 1
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40946d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [esp + 0x120], bl
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409482
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
or dword [esp + 0x120], 0xffffffff
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x409498
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x4094e4
mov byte [esp + 0x120], 2
cmp ecx, ebx
je 0x4092c4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x4092c4
mov byte [esp + 0x120], 1
jmp 0x4092d0
mov byte [esp + 0x120], bl
jmp 0x4092e5
or dword [esp + 0x120], 0xffffffff
cmp eax, ebx
je 0x4094e2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
mov ecx, dword [esp + 0x118]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.004500ac
mov esp, ebp
pop ebp
ret