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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48c038
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4b1070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x4ba594], 0
je 0x416035
cmp edi, 0x4ba584
je 0x416305
push 0xffffffffffffffff
push 0
push 0x4ba584
call fcn.00401d80
jmp 0x416305
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x416059
push 0x12
push 0x49f9b0
mov ecx, edi
call fcn.004070d0
or eax, 0xffffffff
jmp 0x416307
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
jns 0x416091
push 0x18
push 0x49f9c4
mov ecx, edi
call fcn.004070d0
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x416307
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x493610
push 1
push 0
push 0x4936e0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4160ce
push 0x49f9e0
mov ecx, edi
call fcn.00406d80
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x416307
push str.ROOTCIMV2
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
call fcn.004031f0
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x4160f3
mov edx, dword [eax]
jmp 0x4160f5
xor edx, edx
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x14]
push esi
push 0
push 0
mov ecx, dword [eax]
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00403290
test esi, esi
jns 0x416147
push str.ConnectServer
mov ecx, edi
call fcn.00406d80
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
jmp 0x416307
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x416179
push 0x49fa24
mov ecx, edi
call fcn.00406d80
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x416130
push str.SELECT__FROM_Win32_BaseBoard_WHERE__SerialNumber_IS_NOT_NULL_
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x1c], 0
call fcn.00403160
mov esi, eax
push 0x49fa7c
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.00403160
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x4161b1
mov esi, dword [esi]
jmp 0x4161b3
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x4161bd
mov edx, dword [eax]
jmp 0x4161bf
xor edx, edx
mov eax, dword [ebp - 0x14]
lea ebx, [ebp - 0x1c]
push ebx
push 0
push 0x30
mov ecx, dword [eax]
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00403290
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.00403290
test esi, esi
jns 0x4161f9
push str.ExecQuery
jmp 0x416167
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4162ed
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0
push edx
lea edx, [ebp - 0x20]
mov dword [ebp - 0x2c], 0
mov eax, dword [ecx]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x2c], 0
je 0x4162ea
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x3c]
push 0
push 0
push edx
mov ecx, dword [eax]
push 0
push str.SerialNumber
push eax
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4162a9
mov ecx, eax
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416260
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4162a9
add ebx, ebx
mov eax, ebx
call fcn.00452540
mov esi, esp
test esi, esi
je 0x4162a9
push 0
push 0
push ebx
push esi
push 0xffffffffffffffff
push dword [ebp - 0x28]
mov byte [esi], 0
push 0
push 3
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, esi
jmp 0x4162ab
xor eax, eax
push eax
mov ecx, edi
call fcn.00406d80
cmp edi, 0x4ba584
je 0x4162ca
push 0xffffffffffffffff
push 0
push edi
mov ecx, 0x4ba584
call fcn.00401d80
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
jne 0x416204
jmp 0x4162ed
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
lea esp, [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00451a48
mov esp, ebp
pop ebp
ret