Function at 0x47cd60
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x4ed018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x810], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp + 0x24]
push 0x800
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x804]
push 0
push eax
mov dword [ebp - 0x818], ecx
call fcn.00411960
add esp, 0xc
mov dword [ebp - 0x814], 0
cmp dword [ebp - 0x810], 0
jne 0x47ce05
push 0x4c3488
push str.WMI_QueryWMIObjectEnum:__s_failed_n
push 1
call fcn.00446b80
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x81c]
test ecx, ecx
jne 0x47ce16
push 0x4c7dbc
jmp 0x47cde3
mov eax, dword [ebp - 0x818]
test eax, eax
jne 0x47ce27
push str.object
jmp 0x47cde3
test esi, esi
jne 0x47ce32
push str.attr1
jmp 0x47cde3
test edi, edi
jne 0x47ce3d
push str.value1
jmp 0x47cde3
mov edx, dword [ebp - 0x80c]
mov dword [eax], 0
mov eax, dword [ebp - 0x820]
test eax, eax
je 0x47ce57
test edx, edx
je 0x47ce6c
test ebx, ebx
je 0x47ce64
cmp dword [ebp - 0x808], 0
je 0x47ce6c
test eax, eax
jne 0x47ceb7
test ebx, ebx
je 0x47ce99
push dword [ebp - 0x808]
push ebx
push edx
push eax
push edi
push esi
push str.WMI_QueryWMIObjectEnum:_invalid_query_criteria:_0x_08x_0x_08x_0x_08x_0x_08x_0x_08x_0x_08x
push 1
call fcn.00446b80
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push edi
push esi
push ecx
push str.SELECT__FROM__s_WHERE__s__s_
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00419510
add esp, 0x18
jmp 0x47cf00
test ebx, ebx
je 0x47cee2
push dword [ebp - 0x808]
push ebx
push edx
push eax
push edi
push esi
push ecx
push str.SELECT__FROM__s_WHERE__s__s__AND__s__s__AND__s__s_
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00419510
add esp, 0x28
jmp 0x47cf00
push edx
push eax
push edi
push esi
push ecx
push str.SELECT__FROM__s_WHERE__s__s__AND__s__s_
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00419510
add esp, 0x20
xor eax, eax
lea ecx, [ebp - 0x804]
mov word [ebp - 6], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47cf10
sub ecx, edx
sar ecx, 1
cmp ecx, 0x3fe
jb 0x47cf32
push ecx
push str.WMI_QueryWMIObjectEnum:_query_string_is_too_long:__d
jmp 0x47cde8
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0x47cf67
push str.WMI_QueryWMIObjectEnum:_could_not_allocate_query_string
push 1
call fcn.00446b80
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
push edi
push str.WMI_QueryWMIObjectEnum:_query:__S
push 0x10
call fcn.00446b80
add esp, 0xc
push 0x4e0f1c
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
jne 0x47cfb1
push str.WMI_QueryWMIObjectEnum:_Failed_to_alloc_wql_string
push 1
call fcn.00446b80
add esp, 8
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bd5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x810]
lea ecx, [ebp - 0x814]
push ecx
push 0
push 0x30
mov esi, dword [eax]
push edi
push ebx
push eax
mov esi, dword [esi + 0x50]
mov ecx, esi
call dword [0x499490]
call esi
push ebx
mov esi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test esi, esi
jns 0x47cff6
push esi
lfence
push str.WMI_QueryWMIObjectEnum:_Failed_to_query_enum:_0x_08x
jmp 0x47cde8
push str.WMI_QueryWMIObjectEnum:_ExecQuery_successful
push 0x10
call fcn.00446b80
mov ecx, dword [ebp - 0x818]
add esp, 8
mov eax, dword [ebp - 0x814]
mov dword [ecx], eax
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bd5
mov esp, ebp
pop ebp
ret