Function at 0x4052a0
Capabilities:
Check os version
Get cpu information
Get system information on windows
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
push 0x46922c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x405898
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
push str._Novatel_Wireless_Universal_Connection_Manager_System_Log__n
push esi
call ebx
lea ecx, [esp + 0xe4]
push ecx
call dword [sym.imp.MSVCRT.dll__strdate]
add esp, 0xc
lea edx, [esp + 0xdc]
push edx
push str.Log_time:__s
push esi
call ebx
lea eax, [esp + 0xe8]
push eax
call dword [sym.imp.MSVCRT.dll__strtime]
add esp, 0x10
lea ecx, [esp + 0xdc]
push ecx
push 0x4698c4
push esi
call ebx
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], 0x9c
call edi
mov ebp, eax
test ebp, ebp
jne 0x40537d
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], 0x94
push ecx
call edi
test eax, eax
jne 0x40537d
push str.No_OS_version_info_
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
mov eax, dword [esp + 0x50]
dec eax
je 0x405444
dec eax
jne 0x4054f6
push str._nBios_n
push esi
call ebx
push esi
push str.HARDWAREDESCRIPTIONSystem
push reloc.WS2_32.dll_bind
call fcn.00404f30
add esp, 0x14
push str._nCPU_n
push esi
call ebx
push esi
push str.HARDWAREDESCRIPTIONSystemCentralProcessor
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nSerial_ports_n
push esi
call ebx
push esi
push str.HARDWAREDEVICEMAPSERIALCOMM
push reloc.WS2_32.dll_bind
call fcn.00404f30
add esp, 0x14
push str._nMF_n
push esi
call ebx
push esi
push str.SYSTEMCurrentControlSetEnumMF
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nPCMCIA_n
push esi
call ebx
push esi
push str.SYSTEMCurrentControlSetEnumPCMCIA
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nUSB_n
push esi
call ebx
push esi
push str.SYSTEMCurrentControlSetEnumUSB
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nNovatel_Wireless_Software_n
push esi
call ebx
push esi
push str.SOFTWARENovatel_Wireless
jmp 0x4054e9
push str._nBios_n
push esi
call ebx
push esi
push str.EnumRootPNP0C01
push reloc.WS2_32.dll_bind
call fcn.00405120
push esi
push str.EnumRootPNP0C08
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x20
push str._nCPU_n
push esi
call ebx
push esi
push str.HardwareDescriptionSystemCentralProcessor
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nSerial_ports_n
push esi
call ebx
push esi
push str.HardwareDeviceMapSerialComm
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nMF_n
push esi
call ebx
push esi
push str.EnumMF
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nPCMCIA_n
push esi
call ebx
push esi
push str.EnumPCMCIA
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nNovatel_Wireless_Software_n
push esi
call ebx
push esi
push str.SoftwareNovatel_Wireless
push reloc.WS2_32.dll_bind
call fcn.00405120
add esp, 0x14
push str._nSystem_n
push esi
call ebx
mov edx, dword [esp + 0x1c]
add esp, 8
push edx
push str.OEM_ID:__u_n
push esi
call ebx
mov eax, dword [esp + 0x20]
add esp, 0xc
and eax, 0xffff
push eax
push str.Processor_architecture:__u_n
push esi
call ebx
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
push str.Page_size:__u_n
push esi
call ebx
mov edx, dword [esp + 0x28]
add esp, 0xc
push edx
push str.Minimum_app_address:__lx_n
push esi
call ebx
mov eax, dword [esp + 0x2c]
add esp, 0xc
push eax
push str.Maximum_app_address:__lx_n
push esi
call ebx
mov ecx, dword [esp + 0x30]
add esp, 0xc
push ecx
push str.Active_Processor_Mask:__u_n
push esi
call ebx
mov edx, dword [esp + 0x34]
add esp, 0xc
push edx
push str.Number_of_Processors:__u_n
push esi
call ebx
mov eax, dword [esp + 0x38]
add esp, 0xc
push eax
push str.Processor_Type:__u_n
push esi
call ebx
mov ecx, dword [esp + 0x3c]
add esp, 0xc
push ecx
push str.Allocation_Granularity:__u_n
push esi
call ebx
mov edx, dword [esp + 0x40]
add esp, 0xc
and edx, 0xffff
push edx
push str.Processor_Level:__u_n
push esi
call ebx
mov eax, dword [esp + 0x42]
add esp, 0xc
and eax, 0xffff
push eax
push str.Processor_Revision:__u_n
push esi
call ebx
add esp, 0xc
push str._nWindows_information_n
push esi
call ebx
mov eax, dword [esp + 0x58]
add esp, 8
sub eax, 0
je 0x405883
dec eax
je 0x405790
dec eax
jne 0x40588e
cmp dword [esp + 0x44], 4
ja 0x4055f9
push str.Microsoft_Windows_NT
push esi
call ebx
add esp, 8
cmp dword [esp + 0x44], 5
jne 0x40560b
push str.Microsoft_Windows_2000
push esi
call ebx
add esp, 8
test ebp, ebp
je 0x405634
cmp byte [esp + 0xda], 1
jne 0x405624
push str.Professional
push esi
call ebx
add esp, 8
cmp byte [esp + 0xda], 3
jne 0x4056bb
jmp 0x4056b0
lea ecx, [esp + 0x10]
push ecx
push 1
push 0
push str.SYSTEMCurrentControlSetControlProductOptions
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x3c]
lea eax, [esp + 0x15c]
push edx
push eax
push 0
push 0
push str.ProductType
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [esp + 0x15c]
push eax
push str.WINNT
call edi
test eax, eax
jne 0x40569d
push str.Workstation
push esi
call ebx
add esp, 8
lea ecx, [esp + 0x15c]
push ecx
push str.SERVERNT
call edi
test eax, eax
jne 0x4056bb
push str.Server
push esi
call ebx
add esp, 8
mov edx, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
and edx, 0xffff
lea eax, [esp + 0x54]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
push str.version__d._d__s__Build__d_
push esi
call ebx
add esp, 0x18
test ebp, ebp
je 0x40588e
mov eax, dword [esp + 0xd6]
mov ecx, dword [esp + 0xd4]
and eax, 0xffff
and ecx, 0xffff
push eax
push ecx
push str.Service_Pack__d._d_n
push esi
call ebx
mov al, byte [esp + 0xe8]
add esp, 0x10
test al, 4
je 0x405724
push str.Microsoft_BackOffice_components_are_installed.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 0x80
je 0x405739
push str.Windows_2000_DataCenter_Server_is_installed.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 2
je 0x40574e
push str.Windows
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 1
je 0x405763
push str.Microsoft_Small_Business_Server_is_installed.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 0x20
je 0x405778
push str.Microsoft_Small_Business_Server_is_installed_with_the_restrictive_client_license_in_force.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 0x10
je 0x40588e
push str.Terminal_Services_is_installed.__n
jmp 0x405888
mov eax, dword [esp + 0x44]
cmp eax, 4
ja 0x4057aa
jne 0x4057a3
mov eax, dword [esp + 0x48]
test eax, eax
ja 0x4057aa
push str.Microsoft_Windows_95
jmp 0x4057af
push str.Microsoft_Windows_98
push esi
call ebx
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
add esp, 8
and edx, 0xffff
lea eax, [esp + 0x54]
push edx
mov edx, dword [esp + 0x48]
push eax
push ecx
push edx
push str.version__d._d__s__Build__d_
push esi
call ebx
add esp, 0x18
test ebp, ebp
je 0x40588e
mov eax, dword [esp + 0xd6]
mov ecx, dword [esp + 0xd4]
and eax, 0xffff
and ecx, 0xffff
push eax
push ecx
push str.Service_Pack__d._d_n
push esi
call ebx
mov al, byte [esp + 0xe8]
add esp, 0x10
test al, 4
je 0x40581e
push str.Microsoft_BackOffice_components_are_installed.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 0x80
je 0x405833
push str.Windows_2000_DataCenter_Server_is_installed.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 2
je 0x405848
push str.Windows
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 1
je 0x40585d
push str.Microsoft_Small_Business_Server_is_installed.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 0x20
je 0x405872
push str.Microsoft_Small_Business_Server_is_installed_with_the_restrictive_client_license_in_force.__n
push esi
call ebx
add esp, 8
test byte [esp + 0xd8], 0x10
je 0x40588e
push str.Terminal_Services_is_installed.__n
jmp 0x405888
push str.Microsoft_Win32s
push esi
call ebx
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret