Function at 0x440690
Capabilities:
Check os version
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d259
mov eax, dword fs:[0]
push eax
sub esp, 0x174
mov eax, dword [0x48f310]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov edi, edx
push str.getHDDSerial_start
xor eax, eax
push str.INFO
mov ecx, edi
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x14c], edi
mov word [ebx], ax
call fcn.00414290
xor esi, esi
cmp dword [0x4946c4], esi
je 0x440726
push str.getHDDSerial__used_cached_value
push str.INFO
mov ecx, edi
call fcn.00414290
mov eax, 0x4946b4
call fcn.00401489
push eax
push 0x479b8c
push 0x100
push ebx
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
jmp 0x440aba
push 0x110
lea ecx, [ebp - 0x144]
push esi
push ecx
mov dword [ebp - 0x148], 0x114
call fcn.004579d0
add esp, 0xc
lea edx, [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x144], 6
jae 0x440769
mov esi, edi
mov eax, ebx
call fcn.00440620
jmp 0x440aba
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
cmp eax, esi
jge 0x4407a0
push str.Failed_to_initialize_security._Error_code__0x
push str.ERROR
mov ecx, edi
call fcn.00414290
mov esi, edi
mov eax, ebx
call fcn.00440620
jmp 0x440af5
lea eax, [ebp - 0x150]
push eax
push 0x47825c
push 1
push esi
push 0x47832c
mov dword [ebp - 0x150], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jge 0x4407cb
push str.Failed_to_create_IWbemLocator_object._Err_code__0x
jmp 0x440786
lea ecx, [ebp - 0x164]
push ecx
mov edi, str.ROOTCIMV2
mov dword [ebp - 0x154], esi
call fcn.004400b0
mov byte [ebp - 4], 1
mov eax, dword [eax]
cmp eax, esi
je 0x4407f0
mov eax, dword [eax]
jmp 0x4407f2
xor eax, eax
mov ecx, dword [ebp - 0x150]
mov edx, dword [ecx]
lea edi, [ebp - 0x154]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
lea edi, [ebp - 0x164]
mov esi, eax
mov byte [ebp - 4], 0
call fcn.00440150
test esi, esi
jns 0x440854
mov esi, dword [ebp - 0x14c]
push str.Could_not_connect._Error_code__0x
push str.ERROR
mov ecx, esi
call fcn.00414290
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
call fcn.00440620
jmp 0x440af5
mov eax, dword [ebp - 0x154]
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
jns 0x4408b2
mov esi, dword [ebp - 0x14c]
push str.Could_not_set_proxy_blanket.Error_code__0x
push str.ERROR
mov ecx, esi
call fcn.00414290
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, ebx
call fcn.00440620
jmp 0x440af5
push str.Select__from_Win32_DiskDrive_where_InterfaceType__IDE
lea ebx, [ebp - 0x16c]
mov dword [ebp - 0x158], 0
call fcn.00440020
mov esi, eax
push 0x48080c
lea ebx, [ebp - 0x164]
mov byte [ebp - 4], 2
call fcn.00440020
mov byte [ebp - 4], 3
mov ecx, dword [esi]
xor esi, esi
cmp ecx, esi
je 0x4408f2
mov ecx, dword [ecx]
jmp 0x4408f4
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x4408fe
mov edx, dword [eax]
jmp 0x440900
xor edx, edx
mov eax, dword [ebp - 0x154]
mov edi, dword [eax]
lea ebx, [ebp - 0x158]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
mov eax, dword [edi + 0x50]
call eax
lea edi, [ebp - 0x164]
mov ebx, eax
call fcn.00440150
lea edi, [ebp - 0x16c]
mov byte [ebp - 4], 0
call fcn.00440150
cmp ebx, esi
jge 0x44097d
mov esi, dword [ebp - 0x14c]
push str.Query_for_operating_system_name_failed.
push str.ERROR
mov ecx, esi
call fcn.00414290
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x15c]
call fcn.00440620
jmp 0x440af5
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov dword [ebp - 0x160], esi
mov dword [ebp - 0x168], esi
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
cmp dword [ebp - 0x158], 0
je 0x440a59
mov ecx, dword [ebp - 0x14c]
push str.getHDDSerial__process_item
push str.INFO
call fcn.00414290
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax]
lea edx, [ebp - 0x168]
push edx
lea edx, [ebp - 0x160]
push edx
push 1
push 0xffffffffffffffff
push eax
mov eax, dword [ecx + 0x10]
call eax
cmp dword [ebp - 0x168], 0
je 0x440a59
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax]
push 0
push 0
lea edx, [ebp - 0x180]
push edx
push 0
push str.SerialNumber
push eax
mov eax, dword [ecx + 0x10]
call eax
mov ecx, dword [ebp - 0x178]
mov ebx, dword [ebp - 0x15c]
push ecx
push 0x479b8c
mov eax, 0x100
push eax
push ebx
call esi
add esp, 0x10
call fcn.00403750
lea edx, [ebp - 0x180]
push edx
call edi
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp word [ebx], 0
je 0x440995
mov ecx, dword [ebp - 0x14c]
push str.getHDDSerial__serial_is_founded__break_loop
push str.INFO
call fcn.00414290
mov eax, dword [ebp - 0x154]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x150]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x158]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x15c]
cmp word [edi], 0
jne 0x440aa3
mov esi, dword [ebp - 0x14c]
mov eax, edi
call fcn.00440620
push edi
mov edi, 0x4946b4
call fcn.00401d13
mov ebx, dword [ebp - 0x15c]
mov edi, dword [ebp - 0x14c]
push str.getHDDSerial_end__result:
lea eax, [ebp - 0x30]
call fcn.00401cc7
push ebx
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], 5
call fcn.00401cf8
lea eax, [ebp - 0x30]
call fcn.00401489
push eax
push str.INFO
mov ecx, edi
call fcn.00414290
lea ecx, [ebp - 0x30]
call fcn.004012b8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045080d
mov esp, ebp
pop ebp
ret