Function at 0x4049f0
Capabilities:
Connect to wmi namespace via wbemlocator
Get hostname
Reference sql statements
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4416f4
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x4572b4]
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 ebx, ecx
push 0x400
push 0
push ebx
call fcn.00426230
mov edi, dword [sym.imp.ole32.dll_CoUninitialize]
add esp, 0xc
call edi
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x404a81
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]
mov esi, eax
cmp esi, 0x80010119
je 0x404a88
test esi, esi
jns 0x404a88
call fcn.004086b0
push esi
push str.CoInitializeSecurity_hres:_p
call fcn.00408450
add esp, 8
call edi
xor eax, eax
jmp 0x405251
lea eax, [ebp - 0x1a0]
push eax
push 0x44b6ac
push 1
push 0
push 0x44b77c
mov dword [ebp - 0x1a0], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x404a7f
push ecx
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x198], 0
call fcn.00401a90
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x404ad8
mov edx, dword [eax]
jmp 0x404ada
xor edx, edx
mov eax, dword [ebp - 0x1a0]
lea esi, [ebp - 0x198]
mov ecx, dword [eax]
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x1c4]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
call fcn.00401b30
test esi, esi
js 0x404b3c
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [ebp - 0x198]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x404b51
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call edi
xor eax, eax
jmp 0x405251
push str.SELECT__FROM_Win32_BaseBoard
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 0x194], 0
call fcn.00401a00
mov esi, eax
push 0x44d994
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], 1
call fcn.00401a00
mov byte [ebp - 4], 2
mov esi, dword [esi]
test esi, esi
je 0x404b92
mov esi, dword [esi]
jmp 0x404b94
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x404b9e
mov edx, dword [eax]
jmp 0x404ba0
xor edx, edx
mov eax, dword [ebp - 0x198]
lea edi, [ebp - 0x194]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x1c4]
mov esi, eax
call fcn.00401b30
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 0xffffffff
call fcn.00401b30
mov edi, dword [sym.imp.ole32.dll_CoUninitialize]
test esi, esi
js 0x404b30
mov ecx, dword [ebp - 0x194]
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x12c], 0
test ecx, ecx
je 0x404c9d
mov eax, dword [ecx]
lea edx, [ebp - 0x12c]
push edx
lea edx, [ebp - 0x19c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x12c], 0
je 0x404c97
mov eax, dword [ebp - 0x19c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x1b0]
push edx
push 0
push 0x44d998
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x1b0], 8
jne 0x404c7b
push dword [ebp - 0x1a8]
call fcn.00432de0
mov edx, eax
test edx, edx
je 0x404c72
mov ecx, ebx
sub ecx, edx
mov al, byte [edx]
mov byte [edx + ecx + 0x128], al
lea edx, [edx + 1]
test al, al
jne 0x404c62
lea eax, [ebp - 0x1b0]
push eax
call edi
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x404c04
jmp 0x404c9d
mov ecx, dword [ebp - 0x194]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push str.SELECT__FROM_Win32_BIOS
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x194], 0
call fcn.00401a00
mov esi, eax
push 0x44d994
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 3
call fcn.00401a00
mov byte [ebp - 4], 4
mov esi, dword [esi]
test esi, esi
je 0x404ce4
mov esi, dword [esi]
jmp 0x404ce6
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x404cf0
mov edx, dword [eax]
jmp 0x404cf2
xor edx, edx
mov eax, dword [ebp - 0x198]
lea edi, [ebp - 0x194]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x1c8]
mov esi, eax
call fcn.00401b30
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], 0xffffffff
call fcn.00401b30
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x404d5a
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [sym.imp.ole32.dll_CoUninitialize]
call eax
xor eax, eax
jmp 0x405251
mov ecx, dword [ebp - 0x194]
test ecx, ecx
je 0x404e0b
jmp 0x404d70
mov eax, dword [ecx]
lea edx, [ebp - 0x12c]
push edx
lea edx, [ebp - 0x19c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x12c], 0
je 0x404e05
mov eax, dword [ebp - 0x19c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x1b0]
push edx
push 0
push 0x44d998
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x1b0], 8
jne 0x404de9
push dword [ebp - 0x1a8]
call fcn.00432de0
mov edx, eax
test edx, edx
je 0x404de0
mov ecx, ebx
sub ecx, edx
mov edi, edi
mov al, byte [edx]
mov byte [edx + ecx + 0x228], al
lea edx, [edx + 1]
test al, al
jne 0x404dd0
lea eax, [ebp - 0x1b0]
push eax
call edi
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x404d70
jmp 0x404e0b
mov ecx, dword [ebp - 0x194]
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
push str.SELECT__FROM_win32_Processor
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x194], 0
call fcn.00401a00
mov esi, eax
push 0x44d994
lea ecx, [ebp - 0x1c8]
mov dword [ebp - 4], 5
call fcn.00401a00
mov byte [ebp - 4], 6
mov esi, dword [esi]
test esi, esi
je 0x404e52
mov esi, dword [esi]
jmp 0x404e54
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x404e5e
mov edx, dword [eax]
jmp 0x404e60
xor edx, edx
mov eax, dword [ebp - 0x198]
lea edi, [ebp - 0x194]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x1c8]
mov esi, eax
call fcn.00401b30
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], 0xffffffff
call fcn.00401b30
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x404ecb
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [sym.imp.ole32.dll_CoUninitialize]
call eax
mov eax, 0xfffffffa
jmp 0x405251
mov ecx, dword [ebp - 0x194]
test ecx, ecx
je 0x404f6f
lea esp, [esp]
mov eax, dword [ecx]
lea edx, [ebp - 0x12c]
push edx
lea edx, [ebp - 0x19c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x12c], 0
je 0x404f6f
mov eax, dword [ebp - 0x19c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x1b0]
push edx
push 0
push str.ProcessorId
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x1b0], 8
jne 0x404f55
push dword [ebp - 0x1a8]
call fcn.00432de0
mov ecx, eax
test ecx, ecx
je 0x404f4c
mov edx, ebx
sub edx, ecx
mov edi, edi
mov al, byte [ecx]
mov byte [ecx + edx], al
lea ecx, [ecx + 1]
test al, al
jne 0x404f40
lea eax, [ebp - 0x1b0]
push eax
call edi
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x404ee0
push str.SELECT__FROM_Win32_DiskDrive_WHERE_Index_
lea ecx, [ebp - 0x148]
call fcn.00405270
push 0xa
lea eax, [ebp - 0x1c]
push eax
push 0
mov dword [ebp - 4], 7
call fcn.0041eac3
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x178]
call fcn.00405270
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x178]
push eax
lea ecx, [ebp - 0x148]
mov byte [ebp - 4], 8
call fcn.004073c0
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0x134], 0x10
lea eax, [ebp - 0x148]
cmovae eax, dword [ebp - 0x148]
push eax
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x194], 0
call fcn.00401a00
mov esi, eax
push 0x44d994
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 9
call fcn.00401a00
mov byte [ebp - 4], 0xa
mov esi, dword [esi]
test esi, esi
je 0x405019
mov esi, dword [esi]
jmp 0x40501b
xor esi, esi
mov eax, dword [eax]
test eax, eax
je 0x405025
mov edx, dword [eax]
jmp 0x405027
xor edx, edx
mov eax, dword [ebp - 0x198]
lea edi, [ebp - 0x194]
mov ecx, dword [eax]
push edi
push 0
push 0x30
push esi
push edx
push eax
call dword [ecx + 0x50]
lea ecx, [ebp - 0x1c8]
mov esi, eax
call fcn.00401b30
lea ecx, [ebp - 0x1c4]
mov byte [ebp - 4], 8
call fcn.00401b30
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
test esi, esi
jns 0x40508f
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [sym.imp.ole32.dll_CoUninitialize]
call eax
mov esi, 0xfffffff8
jmp 0x405239
mov ecx, dword [ebp - 0x194]
test ecx, ecx
je 0x405169
lea ecx, [ecx]
mov eax, dword [ecx]
lea edx, [ebp - 0x12c]
push edx
lea edx, [ebp - 0x19c]
push edx
push 1
push 0xffffffffffffffff
push ecx
call dword [eax + 0x10]
cmp dword [ebp - 0x12c], 0
je 0x405169
mov eax, dword [ebp - 0x19c]
push 0
mov ecx, dword [eax]
push 0
lea edx, [ebp - 0x1c0]
push edx
push 0
push 0x44d998
push eax
call dword [ecx + 0x10]
cmp word [ebp - 0x1c0], 8
jne 0x405146
push dword [ebp - 0x1b8]
call fcn.00432de0
test eax, eax
je 0x40513d
push ecx
mov edx, eax
lea ecx, [ebp - 0x160]
call fcn.00409720
add esp, 4
cmp dword [ebp - 0x14c], 0x10
lea ecx, [ebp - 0x160]
cmovae ecx, dword [ebp - 0x160]
lea edx, [ebx + 0x14]
mov al, byte [ecx]
mov byte [edx], al
lea ecx, [ecx + 1]
lea edx, [edx + 1]
test al, al
jne 0x405124
lea ecx, [ebp - 0x160]
call fcn.00405340
lea eax, [ebp - 0x1c0]
push eax
call edi
lea eax, [ebp - 0x1c0]
push eax
call edi
mov eax, dword [ebp - 0x19c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov ecx, dword [ebp - 0x194]
test ecx, ecx
jne 0x4050a0
mov eax, dword [ebp - 0x198]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x1a0]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x194]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [sym.imp.ole32.dll_CoUninitialize]
call eax
push 0x44d414
lea ecx, [ebp - 0x190]
call fcn.00405270
push 0x103
lea eax, [ebp - 0x127]
push 0
mov byte [ebp - 4], 0xb
push eax
mov byte [ebp - 0x128], 0
call fcn.00426230
add esp, 0xc
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x130], 0x104
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40520a
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
mov ecx, esp
push str.GetComputerName
mov esi, eax
call fcn.00405270
mov ecx, esi
call fcn.00408760
add esp, 0x18
jmp 0x40522c
lea ecx, [ebp - 0x128]
add ebx, 0x328
mov eax, ecx
sub ebx, eax
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [ecx + ebx], al
lea ecx, [ecx + 1]
test al, al
jne 0x405220
lea ecx, [ebp - 0x190]
xor esi, esi
call fcn.00405340
lea ecx, [ebp - 0x178]
call fcn.00405340
lea ecx, [ebp - 0x148]
call fcn.00405340
mov eax, esi
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.0041e77a
mov esp, ebp
pop ebp
ret