Function at 0x4213a0
Capabilities:
Connect to wmi namespace via wbemlocator
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45115c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
cmp edi, 7
jb 0x4213d7
or eax, 0xffffffff
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dda2
mov esp, ebp
pop ebp
ret
push esi
push esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x421497
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x421491
lea eax, [ebp - 0x14]
push eax
push 0x443db8
push 1
push esi
push 0x443e88
mov dword [ebp - 0x14], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x421491
lea ebx, [ebp - 0xc]
mov dword [ebp - 0x10], esi
call fcn.00420c90
mov eax, dword [eax]
test eax, eax
je 0x421433
mov ecx, dword [eax]
jmp 0x421435
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea esi, [ebp - 0x10]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [ebp - 0xc]
mov esi, eax
call fcn.00420d30
test esi, esi
js 0x421486
mov eax, dword [ebp - 0x10]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4214b0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffe
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dda2
mov esp, ebp
pop ebp
ret
mov eax, dword [edi*8 + 0x44433c]
push eax
lea ebx, [ebp - 0x18]
mov dword [ebp - 0x20], 0
call fcn.00420c00
mov eax, dword [eax]
test eax, eax
je 0x4214d1
mov esi, dword [eax]
jmp 0x4214d3
xor esi, esi
push 0x448eb8
lea ebx, [ebp - 0xc]
call fcn.00420c00
mov eax, dword [eax]
test eax, eax
je 0x4214ea
mov ecx, dword [eax]
jmp 0x4214ec
xor ecx, ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
lea ebx, [ebp - 0x20]
push ebx
push 0
push 0x30
push esi
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
lea ebx, [ebp - 0xc]
mov esi, eax
call fcn.00420d30
lea ebx, [ebp - 0x18]
call fcn.00420d30
xor ecx, ecx
cmp esi, ecx
jge 0x42154e
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, 0xfffffffd
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dda2
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
cmp eax, ecx
je 0x421682
mov esi, dword [ebp + 0xc]
mov ebx, esi
mov dword [ebp - 0x1c], ebx
jmp 0x42156b
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
cmp esi, ecx
je 0x42157f
cmp dword [ebp - 8], 1
jge 0x421682
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x18]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0xc], 0
je 0x42167f
test esi, esi
je 0x42165e
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [edi*8 + 0x444340]
push 0
push ecx
push eax
call edx
mov eax, dword [ebp - 0x28]
mov edi, eax
test eax, eax
je 0x421618
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x421618
lea ebx, [eax + eax]
mov eax, ebx
call fcn.0043ebd0
mov esi, esp
test esi, esi
je 0x421615
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 3
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp - 0x1c]
neg eax
sbb eax, eax
and eax, esi
jmp 0x42161a
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov edx, eax
mov esi, pe_nt_image_headers32
mov ecx, ebx
sub edx, ebx
lea eax, [esi + 0x7fffff7e]
test eax, eax
je 0x42163e
mov al, byte [edx + ecx]
test al, al
je 0x42163e
mov byte [ecx], al
inc ecx
dec esi
jne 0x421625
jmp 0x421642
test esi, esi
jne 0x421643
dec ecx
mov byte [ecx], 0
lea ecx, [ebp - 0x30]
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.00421320
test eax, eax
je 0x421667
inc dword [ebp - 8]
sub ebx, 0xffffff80
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x421563
jmp 0x421682
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [ebp - 8]
lea esp, [ebp - 0x40]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043dda2
mov esp, ebp
pop ebp
ret