Function at 0x4757b0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x4e7018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x28]
mov dword [ebp - 0x818], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x820], eax
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x824], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x814], eax
mov eax, dword [ebp + 0x24]
push 0x800
mov dword [ebp - 0x810], eax
lea eax, [ebp - 0x808]
push 0
push eax
mov dword [ebp - 0x81c], ecx
call fcn.0040f160
add esp, 0xc
mov dword [ebp - 0x80c], 0
cmp dword [ebp - 0x818], 0
jne 0x475855
push 0x4bbb30
push str.WMI_QueryWMIObjectEnum:__s_failed_n
push 1
call fcn.004439a0
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x820]
test ecx, ecx
jne 0x475866
push 0x4c092c
jmp 0x475833
mov eax, dword [ebp - 0x81c]
test eax, eax
jne 0x475877
push str.object
jmp 0x475833
test esi, esi
jne 0x475882
push str.attr1
jmp 0x475833
test edi, edi
jne 0x47588d
push str.value1
jmp 0x475833
mov edx, dword [ebp - 0x814]
mov dword [eax], 0
mov eax, dword [ebp - 0x824]
test eax, eax
je 0x4758a7
test edx, edx
je 0x4758bc
test ebx, ebx
je 0x4758b4
cmp dword [ebp - 0x810], 0
je 0x4758bc
test eax, eax
jne 0x475907
test ebx, ebx
je 0x4758e9
push dword [ebp - 0x810]
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.004439a0
add esp, 0x20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push esi
push ecx
push str.SELECT__FROM__s_WHERE__s__s_
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.004159a0
add esp, 0x18
jmp 0x475950
test ebx, ebx
je 0x475932
push dword [ebp - 0x810]
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 - 0x808]
push 0x400
push eax
call fcn.004159a0
add esp, 0x28
jmp 0x475950
push edx
push eax
push edi
push esi
push ecx
push str.SELECT__FROM__s_WHERE__s__s__AND__s__s_
lea eax, [ebp - 0x808]
push 0x400
push eax
call fcn.004159a0
add esp, 0x20
xor eax, eax
lea ecx, [ebp - 0x808]
mov word [ebp - 0xa], ax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x475960
sub ecx, edx
sar ecx, 1
cmp ecx, 0x3fe
jb 0x475982
push ecx
push str.WMI_QueryWMIObjectEnum:_query_string_is_too_long:__d
jmp 0x475838
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
test edi, edi
jne 0x4759b7
push str.WMI_QueryWMIObjectEnum:_could_not_allocate_query_string
push 1
call fcn.004439a0
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401bf1
mov esp, ebp
pop ebp
ret
push edi
push str.WMI_QueryWMIObjectEnum:_query:__S
push 0x10
call fcn.004439a0
add esp, 0xc
push 0x4d97cc
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
jne 0x475a01
push str.WMI_QueryWMIObjectEnum:_Failed_to_alloc_wql_string
push 1
call fcn.004439a0
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.00401bf1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x818]
lea ecx, [ebp - 0x80c]
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 [0x492480]
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 0x475a43
push esi
push str.WMI_QueryWMIObjectEnum:_Failed_to_query_enum:_0x_08x
jmp 0x475838
push str.WMI_QueryWMIObjectEnum:_ExecQuery_successful
push 0x10
call fcn.004439a0
mov ecx, dword [ebp - 0x81c]
add esp, 8
mov eax, dword [ebp - 0x80c]
mov dword [ecx], eax
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401bf1
mov esp, ebp
pop ebp
ret