Function at 0x42c877
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x28]
push 0x47
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x144]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x144]
mov dword [ebp - 0x144], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42cccc
push str.GetNativeSystemInfo
push 0x451dcc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
je 0x42c8dc
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x42c8e6
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x134], 2
jne 0x42ccd4
cmp dword [ebp - 0x140], 4
jbe 0x42cd8b
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov edi, str.Microsoft
push edi
call esi
pop ecx
push eax
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
cmp dword [ebp - 0x140], 0xa
jne 0x42c954
cmp dword [ebp - 0x13c], ebx
jne 0x42c941
cmp byte [ebp - 0x2a], 1
jne 0x42c93a
mov ebx, str.Windows_10_Insider_Preview
jmp 0x42c946
mov ebx, str.Windows_Server_Technical_Preview
jmp 0x42c946
mov ebx, str.Windows_10
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp dword [ebp - 0x140], 6
mov ebx, str.Enterprise_Edition
jne case.0x42ca7d.5
mov eax, dword [ebp - 0x13c]
sub eax, 0
je 0x42ca19
dec eax
je 0x42c9eb
dec eax
je 0x42c9c5
dec eax
je 0x42c99f
dec eax
jne 0x42ca3c
cmp byte [ebp - 0x2a], 1
jne 0x42ca3c
push 0x452b18
call esi
pop ecx
push eax
push 0x452b18
jmp 0x42c9ff
cmp byte [ebp - 0x2a], 1
jne 0x42c9b5
push 0x452afc
call esi
pop ecx
push eax
push 0x452afc
jmp 0x42c9ff
push 0x452acc
call esi
pop ecx
push eax
push 0x452acc
jmp 0x42c9ff
cmp byte [ebp - 0x2a], 1
jne 0x42c9db
push 0x452ab4
call esi
pop ecx
push eax
push 0x452ab4
jmp 0x42c9ff
push 0x452a88
call esi
pop ecx
push eax
push 0x452a88
jmp 0x42c9ff
cmp byte [ebp - 0x2a], 1
jne 0x42ca09
push 0x452a70
call esi
pop ecx
push eax
push 0x452a70
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
jmp 0x42ca3c
push 0x452a40
call esi
pop ecx
push eax
push 0x452a40
jmp 0x42c9ff
cmp byte [ebp - 0x2a], 1
mov ebx, 0x452a20
je 0x42ca29
mov ebx, 0x4529f4
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov ebx, str.Enterprise_Edition
push str.GetProductInfo
push 0x451dcc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push dword [ebp - 0x13c]
push dword [ebp - 0x140]
call eax
mov eax, dword [ebp - 4]
cmp eax, 0x19
ja 0x42caed
je 0x42cae6
dec eax
cmp eax, 0x11
ja case.0x42ca7d.5
jmp dword [eax*4 + 0x42cdaa]
mov ebx, str.Starter_Edition
jmp case.0x42ca7d.4
mov ebx, str.Home_Premium_Edition
jmp case.0x42ca7d.4
mov ebx, str.Home_Basic_Edition
jmp case.0x42ca7d.4
mov ebx, str.Business_Edition
jmp case.0x42ca7d.4
mov ebx, str.Cluster_Server_Edition
jmp case.0x42ca7d.4
mov ebx, str.Datacenter_Edition
jmp case.0x42ca7d.4
mov ebx, str.Datacenter_Edition__core_installation_
jmp case.0x42ca7d.4
mov ebx, str.Ultimate_Edition
jmp case.0x42ca7d.4
mov ebx, str.Enterprise_Edition__core_installation_
jmp case.0x42ca7d.4
mov ebx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp case.0x42ca7d.4
mov ebx, str.Small_Business_Server
jmp case.0x42ca7d.4
mov ebx, str.Standard_Edition__core_installation_
jmp case.0x42ca7d.4
mov ebx, str.Standard_Edition
jmp case.0x42ca7d.4
mov ebx, str.Web_Server_Edition
jmp case.0x42ca7d.4
mov ebx, str.Small_Business_Server_Premium_Edition
jmp case.0x42ca7d.4
cmp eax, 0x30
jne case.0x42ca7d.5
mov ebx, str.Professional
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp dword [ebp - 0x140], 5
jne 0x42cc9b
mov eax, dword [ebp - 0x13c]
sub eax, 0
je 0x42cc50
dec eax
je 0x42cc30
dec eax
je 0x42cb3d
mov ebx, str.Unsupported_version_of_Windows
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
jmp 0x42cd9d
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42cb50
mov ebx, 0x452638
jmp 0x42cb81
test byte [ebp - 0x2b], 0x20
je 0x42cb5d
mov ebx, 0x4525fc
jmp 0x42cb81
test byte [ebp - 0x2b], 0x80
je 0x42cb6a
mov ebx, 0x4525d0
jmp 0x42cb81
cmp byte [ebp - 0x2a], 1
jne 0x42cb7c
cmp word [ebp - 0x28], 9
mov ebx, 0x4525b8
je 0x42cb81
mov ebx, 0x45258c
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp byte [ebp - 0x2a], 1
je 0x42cc9b
cmp word [ebp - 0x28], 6
jne 0x42cbc4
test byte [ebp - 0x2c], 0x80
je 0x42cbb0
mov ebx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x42cc8d
test byte [ebp - 0x2c], 2
je 0x42cc9b
mov ebx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42cc8d
cmp word [ebp - 0x28], 9
jne 0x42cbf5
test byte [ebp - 0x2c], 0x80
je 0x42cbdb
mov ebx, str.Datacenter_x64_Edition
jmp 0x42cc8d
test byte [ebp - 0x2c], 2
je 0x42cbeb
mov ebx, str.Enterprise_x64_Edition
jmp 0x42cc8d
mov ebx, str.Standard_x64_Edition
jmp 0x42cc8d
mov eax, dword [ebp - 0x2c]
test ah, 0x40
je 0x42cc07
mov ebx, str.Compute_Cluster_Edition
jmp 0x42cc8d
test al, 0x80
je 0x42cc12
mov ebx, str.Datacenter_Edition
jmp 0x42cc8d
test al, 2
je 0x42cc1d
mov ebx, str.Enterprise_Edition
jmp 0x42cc8d
test ah, 4
je 0x42cc29
mov ebx, str.Web_Edition
jmp 0x42cc8d
mov ebx, str.Standard_Edition
jmp 0x42cc8d
mov ebx, 0x4525b8
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
test byte [ebp - 0x2b], 2
je 0x42cc69
mov ebx, str.Home_Edition
jmp 0x42cc8d
mov ebx, 0x452424
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp byte [ebp - 0x2a], 1
jne 0x42cc70
mov ebx, str.Professional
jmp 0x42cc8d
test byte [ebp - 0x2c], 0x80
je 0x42cc7d
mov ebx, str.Datacenter_Server
jmp 0x42cc8d
test byte [ebp - 0x2c], 2
mov ebx, str.Advanced_Server
jne 0x42cc8d
mov ebx, str.Server
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp dword [ebp - 0x140], 6
jb 0x42cccc
cmp word [ebp - 0x28], 9
jne 0x42ccb2
mov ebx, str.__64_bit
jmp 0x42ccbe
cmp word [ebp - 0x28], 0
jne 0x42cccc
mov ebx, str.__32_bit
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
push 1
pop eax
jmp 0x42cda5
cmp dword [ebp - 0x134], 1
jne 0x42cd7e
cmp dword [ebp - 0x140], 4
jne 0x42cda3
cmp dword [ebp - 0x13c], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
jne 0x42cd2e
mov edi, str.Microsoft_Windows_95
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov edi, str.OSR2
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp dword [ebp - 0x140], 4
jne 0x42cda3
cmp dword [ebp - 0x13c], 0xa
jne 0x42cd66
mov edi, str.Microsoft_Windows_98
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
mov edi, 0x45233c
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
cmp dword [ebp - 0x140], 4
jne 0x42cda3
cmp dword [ebp - 0x13c], 0x5a
jne 0x42cda3
mov edi, str.Microsoft_Windows_ME
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
jmp 0x42cd9d
cmp dword [ebp - 0x134], ebx
mov esi, str.Microsoft_Windows_Win32s
je 0x42cd90
mov esi, str.Unsupported_version_of_Windows.
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
mov ecx, dword [ebp + 8]
push eax
push esi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret