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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44618e
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x467040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
push 2
push 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x407246
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x40723f
lea eax, [ebp - 0x2c]
push eax
push 0x44c008
push 1
push 0
push 0x44c018
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40723f
mov eax, dword [ebp - 0x2c]
push 0xc
mov eax, dword [eax]
mov edi, dword [eax + 0xc]
call fcn.00444ab3
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x407175
push str.ROOTCIMV2
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
je 0x407533
jmp 0x407177
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x28], esi
test esi, esi
je 0x407533
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi]
mov ecx, edi
push dword [ebp - 0x2c]
call dword [0x44b694]
call edi
mov edi, eax
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x4071fa
mov ecx, dword [esi]
test ecx, ecx
je 0x4071d6
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4071ef
push eax
call fcn.00444aae
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00444ae8
add esp, 8
test edi, edi
js 0x40722c
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x30]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x30]
jns 0x407263
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x44b694]
call esi
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x44b694]
call esi
nop
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00444aa0
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x38], 0
mov eax, dword [eax]
push 0xc
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x44], eax
call fcn.00444ab3
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
mov dword [ebp - 4], 2
test esi, esi
je 0x4072a9
push str.SELECT__FROM_Win32_LogonSession_WHERE_LogonType__2
mov dword ds:[esi + 4], 0
mov dword [esi + 8], 1
call fcn.00444890
mov dword [esi], eax
jmp 0x4072ab
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x60], esi
test esi, esi
je 0x407533
mov dword [ebp - 4], 3
mov eax, dword [esi]
push 0xc
mov dword [ebp - 0x28], eax
call fcn.00444ab3
mov edi, eax
add esp, 4
mov dword [ebp - 0x3c], edi
mov byte [ebp - 4], 4
test edi, edi
je 0x407302
push 0x44c470
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call fcn.00444890
mov dword ds:[edi], eax
jmp 0x407304
xor edi, edi
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x40753d
mov ecx, dword [ebp - 0x44]
lea eax, [ebp - 0x38]
push eax
push 0
push 0x30
mov byte [ebp - 4], 5
push dword [ebp - 0x28]
push dword [edi]
push dword [ebp - 0x30]
call dword [0x44b694]
call dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
or eax, 0xffffffff
mov ecx, eax
lock xadd dword [edi + 8], ecx
dec ecx
jne 0x40737d
mov ecx, dword [edi]
test ecx, ecx
je 0x407356
push ecx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [edi], 0
mov eax, dword [edi + 4]
test eax, eax
je 0x40736f
push eax
call fcn.00444aae
add esp, 4
mov dword [edi + 4], 0
push 0xc
push edi
call fcn.00444ae8
add esp, 8
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
lock xadd dword [esi + 8], eax
dec eax
jne 0x4073c1
mov eax, dword [esi]
test eax, eax
je 0x40739f
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4073b6
push eax
call fcn.00444aae
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00444ae8
add esp, 8
cmp dword [ebp - 0x28], 0
jl 0x407246
mov ecx, dword ds:[ebp - 0x38]
xorps xmm0, xmm0
movlpd qword [ebp - 0x4c], xmm0
mov byte [ebp - 0x21], 1
test ecx, ecx
je 0x407246
mov edi, dword [ebp - 0x34]
nop dword [eax + eax]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x28], 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push 1
push 0xffffffffffffffff
push ecx
mov ecx, esi
call dword [0x44b694]
call esi
cmp dword [ebp - 0x28], 0
mov esi, eax
je 0x4074ff
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
test esi, esi
js 0x4074d5
mov ecx, dword [ebp - 0x34]
push 0
push 0
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [ebp - 0x5c]
push eax
push 0
push 0x44c474
push ecx
mov ecx, esi
call dword [0x44b694]
call esi
test eax, eax
js 0x4074d5
cmp word [ebp - 0x5c], 8
jne 0x4074d5
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x16]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 0x1e]
push eax
lea eax, [ebp - 0x20]
push eax
push str._4hd_2hd_2hd_2hd_2hd_2hd
push dword [ebp - 0x54]
movups xmmword [ebp - 0x20], xmm0
call fcn.00406f60
add esp, 0x20
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
cmp byte [ebp - 0x21], 0
jne 0x4074be
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jle 0x4074d5
movups xmm0, xmmword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
movups xmmword [edi], xmm0
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x44b694]
call esi
mov ecx, dword [ebp - 0x38]
test ecx, ecx
jne 0x4073f0
jmp 0x407516
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x407516
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x44b694]
call esi
cmp byte ds:[ebp - 0x21], 0
jne 0x407246
call dword [sym.imp.ole32.dll_CoUninitialize]
mov al, 1
jmp 0x407248
push 0x8007000e
call fcn.00444870
push 0x8007000e
call fcn.00444870
int3