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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47981a
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push edi
mov eax, dword [0x496684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp esi, 9
jb 0x406a75
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0x4813e4
push 1
push edi
push 0x4814b4
mov dword [ebp - 0x18], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x406b0a
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.00406430
mov dword [ebp - 4], edi
mov eax, dword [eax]
cmp eax, edi
je 0x406aab
mov ecx, dword [eax]
jmp 0x406aad
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, dword [eax]
lea ebx, [ebp - 0x14]
push ebx
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x2c]
call fcn.004064d0
test ebx, ebx
js 0x406aff
mov eax, dword [ebp - 0x14]
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 0x406b20
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xfffffffe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi*8 + 0x48b0d8]
push eax
lea ebx, [ebp - 0x28]
mov dword [ebp - 0x20], 0
call fcn.004063a0
mov edi, eax
mov dword [ebp - 4], 1
push 0x48b5b4
lea ebx, [ebp - 0x2c]
call fcn.004063a0
mov byte [ebp - 4], 2
mov ecx, dword [edi]
test ecx, ecx
je 0x406b5b
mov ecx, dword [ecx]
jmp 0x406b5d
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x406b67
mov edx, dword [eax]
jmp 0x406b69
xor edx, edx
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
lea ebx, [ebp - 0x20]
push ebx
push 0
push 0x30
push ecx
mov ecx, dword [edi + 0x50]
push edx
push eax
call ecx
mov ebx, eax
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
call fcn.004064d0
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x28]
call fcn.004064d0
xor ecx, ecx
cmp ebx, ecx
jge 0x406bcd
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
cmp eax, ecx
je 0x406cec
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.OLEAUT32.dll_VariantClear]
jmp 0x406be5
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
cmp dword [ebp + 8], ecx
je 0x406bfd
cmp dword [ebp - 0x1c], 0x80
jge 0x406cec
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x24]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x28], 0
je 0x406ce9
cmp dword [ebp + 8], 0
je 0x406cc8
lea ecx, [ebp - 0x3c]
push ecx
call ebx
mov eax, dword [ebp - 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [esi*8 + 0x48b0dc]
push 0
push ecx
push eax
call edx
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.00406e60
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
push 0x80
push ecx
push edi
call fcn.004303b0
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, esi
sub eax, 0
je 0x406c88
dec eax
jne 0x406c97
call fcn.00406710
jmp 0x406c93
push edi
mov ecx, edi
call fcn.00406520
add esp, 4
test eax, eax
je 0x406ca0
inc dword [ebp - 0x1c]
add edi, 0x100
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406cd1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x406cd1
inc dword [ebp - 0x1c]
add edi, 0x100
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x406be3
jmp 0x406cec
mov eax, dword [ebp - 0x20]
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
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret