Function at 0x40c6d0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bbab5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x50c080]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
mov dword [ebp - 0x58], eax
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
jns 0x40c744
cmp eax, 0x80010119
je 0x40c744
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x40cb23
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 0x4e4c40
push 1
push 0
push 0x4e4c50
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40c77b
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
jmp 0x40cb0d
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x1c]
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
call fcn.00409440
mov byte [ebp - 4], 3
mov eax, dword [eax]
test eax, eax
je 0x40c7a5
mov eax, dword [eax]
jmp 0x40c7a7
xor eax, eax
lea ecx, [ebp - 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call edi
mov esi, dword [ebp - 0x1c]
or edi, 0xffffffff
mov dword [ebp - 0x18], eax
test esi, esi
je 0x40c80e
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40c80e
test esi, esi
je 0x40c80e
mov eax, dword [esi]
test eax, eax
je 0x40c7e9
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40c800
push eax
call fcn.00490f8b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00490f7d
mov eax, dword [ebp - 0x18]
add esp, 8
test eax, eax
js 0x40caf4
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x24]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x40caf4
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
mov esi, dword [ebp - 0x24]
push str.SELECT_serialNumber_FROM_Win32_PhysicalMemory
mov eax, dword [esi]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x54], eax
call fcn.004093a0
mov byte [ebp - 4], 9
mov eax, dword [eax]
test eax, eax
je 0x40c869
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
jmp 0x40c870
mov dword [ebp - 0x1c], 0
push 0x4ec328
lea ecx, [ebp - 0x18]
call fcn.004093a0
mov byte [ebp - 4], 0xa
mov eax, dword [eax]
test eax, eax
je 0x40c88b
mov eax, dword [eax]
jmp 0x40c88d
xor eax, eax
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0x30
push dword [ebp - 0x1c]
push eax
push esi
call dword [ebp - 0x54]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x54], eax
test esi, esi
je 0x40c8f1
mov ecx, edi
lock xadd dword [esi + 8], ecx
dec ecx
jne 0x40c8ea
test esi, esi
je 0x40c8ea
mov eax, dword [esi]
test eax, eax
je 0x40c8c8
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40c8df
push eax
call fcn.00490f8b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00490f7d
add esp, 8
mov dword [ebp - 0x18], 0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x40c939
lock xadd dword [esi + 8], edi
dec edi
jne 0x40c939
test esi, esi
je 0x40c939
mov eax, dword [esi]
test eax, eax
je 0x40c917
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x40c92e
push eax
call fcn.00490f8b
add esp, 4
mov dword [esi + 4], 0
push 0xc
push esi
call fcn.00490f7d
add esp, 8
cmp dword [ebp - 0x54], 0
jge 0x40c94f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x20]
xor esi, esi
jmp 0x40cae4
mov edi, dword [ebp - 0x58]
xor eax, eax
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 7
mov word [edi], ax
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x20]
push edx
push 1
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
js 0x40ca40
mov edi, dword [sym.imp.OLEAUT32.dll_VariantInit]
nop
cmp dword [ebp - 0x1c], 0
je 0x40ca3d
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x50]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.serialNumber
push eax
call dword [ecx + 0x10]
test eax, eax
js 0x40c9f1
mov eax, 8
cmp ax, word [ebp - 0x50]
jne 0x40c9f3
push dword [ebp - 0x48]
call edi
test eax, eax
je 0x40c9f3
push dword [ebp - 0x48]
lea ecx, [ebp - 0x40]
call fcn.0040d6d0
jmp 0x40c9f3
call esi
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 0x11
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ca0e
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 0xf
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push edx
lea edx, [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push edx
mov ecx, dword [eax]
push 1
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jns 0x40c9a0
mov edi, dword [ebp - 0x58]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40ca51
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x2c], 7
lea eax, [ebp - 0x40]
mov edx, 0x400
mov ecx, edi
cmova eax, dword [ebp - 0x40]
push eax
call fcn.00409550
test eax, eax
jns 0x40ca6f
call esi
mov byte [ebp - 4], 0x12
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x40ca8a
mov dword [ebp - 0x20], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 8
mov esi, 1
mov eax, dword [ebp - 0x2c]
cmp eax, 7
jbe 0x40cad0
mov edx, dword [ebp - 0x40]
lea ecx, [eax*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40cac3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40cb43
push ecx
push edx
call fcn.00490f7d
mov ecx, dword [ebp - 0x20]
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x40cafc
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
jmp 0x40cafc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x40cb0d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0x15
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x40cb21
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490c46
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
call fcn.004961af
int3