Function at 0x40fb80
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x432342
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x4417c0]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4417c0]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [esp + 0x26c]
mov ebp, dword [esp + 0x274]
xor ebx, ebx
push ebx
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, ebx
jl 0x40fc30
xor edi, edi
mov dword [esp + 0x14], ebx
lea ecx, [esp + 0x14]
push ecx
push 0x43bc00
push 1
push ebx
push 0x43bb30
mov dword [esp + 0x274], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x40fc38
mov eax, dword [esp + 0x14]
mov dword [esp + 0x260], 0xffffffff
cmp eax, ebx
je 0x40fc30
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
or eax, 0xffffffff
jmp 0x40fe29
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
lea edx, [esp + 0x20]
push edx
push ebx
push ebx
push 0x80
push ebx
push ebx
push ebx
push str.rootcimv2
push eax
mov eax, dword [ecx + 0xc]
mov byte [esp + 0x284], 1
call eax
cmp eax, ebx
jl 0x40fdec
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x268]
push ecx
lea edx, [esp + 0x50]
push str.SELECT_ExecutablePath__Name_FROM_Win32_Process_WHERE_ProcessID___d
push edx
mov byte [esp + 0x26c], 2
call fcn.00406ba0
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push ebx
push 0x20
lea edx, [esp + 0x58]
push edx
push 0x434064
push eax
mov eax, dword [ecx + 0x50]
call eax
cmp eax, ebx
jl 0x40fdcf
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
lea edx, [esp + 0x1c]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
mov byte [esp + 0x274], 3
call eax
cmp eax, ebx
jl 0x40fdb2
cmp dword [esp + 0x24], ebx
jbe 0x40fdb5
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea ecx, [esp + 0x3c]
push ecx
call esi
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push ebx
push ebx
lea ecx, [esp + 0x44]
push ecx
push ebx
push str.ExecutablePath
push eax
mov byte [esp + 0x278], 4
mov edi, 1
call edx
cmp eax, ebx
jl 0x40fd46
cmp word [esp + 0x3c], di
je 0x40fd46
mov eax, dword [esp + 0x278]
mov ecx, dword [esp + 0x44]
push eax
push ecx
push ebp
call fcn.0041c2e0
add esp, 0xc
jmp 0x40fd49
or edi, 0xffffffff
lea edx, [esp + 0x2c]
push edx
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x34]
push edx
push ebx
push str.Name
push eax
mov eax, dword [ecx + 0x10]
mov byte [esp + 0x278], 5
call eax
cmp eax, ebx
jl 0x40fd99
cmp word [esp + 0x2c], 1
je 0x40fd99
mov ecx, dword [esp + 0x270]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call fcn.0041c2e0
add esp, 0xc
jmp 0x40fd9c
or edi, 0xffffffff
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x2c]
push ecx
call esi
lea edx, [esp + 0x3c]
push edx
call esi
jmp 0x40fdb5
or edi, 0xffffffff
mov eax, dword [esp + 0x18]
mov byte [esp + 0x260], 2
cmp eax, ebx
je 0x40fdd2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40fdd2
or edi, 0xffffffff
mov eax, dword [esp + 0x1c]
mov byte [esp + 0x260], 1
cmp eax, ebx
je 0x40fdef
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x40fdef
or edi, 0xffffffff
mov eax, dword [esp + 0x20]
mov byte [esp + 0x260], bl
cmp eax, ebx
je 0x40fe06
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x260], 0xffffffff
cmp eax, ebx
je 0x40fe21
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, edi
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0041a7bc
add esp, 0x250
ret