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

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x30]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0xc], ebx
jl 0x4136e8
cmp ebp, 8
jae 0x4136e8
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x413492
push ebx
push ebx
push ebx
push 3
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [esp + 8]
push eax
push 0x438be4
push 1
push ebx
push 0x438cb4
mov dword [esp + 0x1c], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x41349d
call dword [sym.imp.ole32.dll_CoUninitialize]
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x24
ret
push 0x436180
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], ebx
call fcn.00412ae0
mov eax, dword [eax]
cmp eax, ebx
je 0x4134b9
mov ecx, dword [eax]
jmp 0x4134bb
xor ecx, ecx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push esi
lea esi, [esp + 0x34]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push eax
mov eax, dword [edx + 0xc]
call eax
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.004133e0
cmp esi, ebx
jl 0x413508
mov eax, dword [esp + 0x34]
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jge 0x413526
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop esi
pop ebp
mov eax, 0xfffffffe
pop ebx
add esp, 0x24
ret
mov eax, dword [ebp*8 + 0x4360e0]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], ebx
call fcn.00412a90
mov eax, dword [eax]
cmp eax, ebx
je 0x413545
mov esi, dword [eax]
jmp 0x413547
xor esi, esi
push 0x43617c
lea ecx, [esp + 0x20]
call fcn.00412a90
mov eax, dword [eax]
cmp eax, ebx
je 0x41355f
mov ecx, dword [eax]
jmp 0x413561
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov edx, dword [eax]
push edi
lea edi, [esp + 0x18]
push edi
push ebx
push 0x30
push esi
push ecx
push eax
mov eax, dword [edx + 0x50]
call eax
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.004133e0
lea ecx, [esp + 0x1c]
call fcn.004133e0
cmp esi, ebx
jge 0x4135bb
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
pop edi
pop esi
pop ebp
mov eax, 0xfffffffd
pop ebx
add esp, 0x24
ret
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x4136b6
mov esi, dword [esp + 0x3c]
mov edi, esi
jmp 0x4135d4
mov esi, dword [esp + 0x3c]
cmp esi, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x4135ee
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x40]
jge 0x4136b6
mov edx, dword [eax]
mov edx, dword [edx + 0x10]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x20]
push ecx
push 1
push 0xffffffffffffffff
push eax
call edx
cmp dword [esp + 0x20], ebx
je 0x4136b2
cmp esi, ebx
je 0x41368d
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ebx
push ebx
lea edx, [esp + 0x2c]
push edx
mov edx, dword [ebp*8 + 0x4360e4]
push ebx
push edx
push eax
mov eax, dword [ecx + 0x10]
call eax
mov edx, dword [esp + 0x2c]
mov esi, 0x80
mov eax, edi
sub edx, edi
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x413666
movzx ecx, word [edx + eax]
cmp cx, bx
je 0x413666
mov word [eax], cx
add eax, 2
sub esi, 1
jne 0x413646
jmp 0x41366a
cmp esi, ebx
jne 0x41366d
sub eax, 2
lea edx, [esp + 0x24]
push edx
mov word [eax], bx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, 0x80
mov edx, edi
mov ecx, ebp
call fcn.004132f0
test eax, eax
je 0x413698
add dword [esp + 0x14], 1
add edi, 0x100
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x4135d0
jmp 0x4136b6
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x38]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret