Function at 0x456600
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x4a39f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x808], ecx
mov ecx, dword [ebp + 0x24]
mov dword [ebp - 0x810], eax
xor eax, eax
push 0x7fe
mov dword [ebp - 0x80c], ecx
mov dword [ebp - 0x820], edx
mov edx, dword [ebp + 0x28]
push eax
lea ecx, [ebp - 0x802]
push ecx
mov dword [ebp - 0x818], edx
mov word [ebp - 0x804], ax
call fcn.00405300
add esp, 0xc
cmp dword [ebp - 0x81c], 0
mov dword [ebp - 0x814], 0
jne 0x4566ad
push 0x47edac
push str.WMI_QueryWMIObjectEnum:__s_failed_n
push 1
call fcn.004343f0
add esp, 0xc
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x808], 0
jne 0x4566bd
push 0x48dd4c
jmp 0x45668b
mov eax, dword [ebp - 0x818]
test eax, eax
jne 0x4566ce
push str.object
jmp 0x45668b
test esi, esi
jne 0x4566d9
push str.attr1
jmp 0x45668b
test edi, edi
jne 0x4566e4
push str.value1
jmp 0x45668b
mov dword [eax], 0
call fcn.00455a50
test al, al
je 0x45669a
mov ecx, dword [ebp - 0x820]
test ebx, ebx
je 0x456705
test ecx, ecx
je 0x45679d
mov eax, dword [ebp - 0x810]
test eax, eax
je 0x45671c
cmp dword [ebp - 0x80c], 0
je 0x4567a3
test ebx, ebx
jne 0x4567d1
test eax, eax
jne 0x4567a3
mov ecx, dword [ebp - 0x808]
push edi
push esi
push ecx
push str.SELECT__FROM__s_WHERE__s__s_
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00457d45
add esp, 0x18
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456760
sub eax, edx
sar eax, 1
cmp eax, 0x3fe
jb 0x45682f
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x456783
sub eax, edx
sar eax, 1
push eax
push str.WMI_QueryWMIObjectEnum:_query_string_is_too_long:__d
jmp 0x456690
mov eax, dword [ebp - 0x810]
mov edx, dword [ebp - 0x80c]
push edx
push eax
push ecx
push ebx
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.004343f0
add esp, 0x20
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x456806
mov edx, dword [ebp - 0x80c]
push edx
push eax
mov eax, dword [ebp - 0x808]
push ecx
push ebx
push edi
push esi
push eax
push str.SELECT__FROM__s_WHERE__s__s__AND__s__s__AND__s__s_
lea ecx, [ebp - 0x804]
push 0x400
push ecx
call fcn.00457d45
add esp, 0x28
jmp 0x45674a
mov edx, dword [ebp - 0x808]
push ecx
push ebx
push edi
push esi
push edx
push str.SELECT__FROM__s_WHERE__s__s__AND__s__s_
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.00457d45
add esp, 0x20
jmp 0x45674a
lea ecx, [ebp - 0x804]
push ecx
call dword [0x4b0d3c]
mov esi, eax
test esi, esi
jne 0x456864
push str.WMI_QueryWMIObjectEnum:_could_not_allocate_query_string
push 1
call fcn.004343f0
add esp, 8
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
push esi
push str.WMI_QueryWMIObjectEnum:_query:__S
push 0x10
call fcn.004343f0
add esp, 0xc
push 0x49df4c
call dword [0x4b0d3c]
mov edi, eax
test edi, edi
jne 0x4568ae
push str.WMI_QueryWMIObjectEnum:_Failed_to_alloc_wql_string
push 1
call fcn.004343f0
add esp, 8
push esi
call dword [0x4b0d40]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040506e
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x81c]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [ebp - 0x814]
push ecx
push 0
push 0x30
push esi
push edi
push eax
call edx
push edi
mov ebx, eax
call dword [0x4b0d40]
push esi
call dword [0x4b0d40]
test ebx, ebx
jge 0x4568e8
push ebx
push str.WMI_QueryWMIObjectEnum:_Failed_to_query_enum:_0x_08x
jmp 0x456690
push str.WMI_QueryWMIObjectEnum:_ExecQuery_successful
push 0x10
call fcn.004343f0
mov eax, dword [ebp - 0x814]
mov ecx, dword [ebp - 0x818]
add esp, 8
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0040506e
mov esp, ebp
pop ebp
ret