Function at 0x42ba7c
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 0x42bed1
push str.GetNativeSystemInfo
push 0x44e978
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
je 0x42bae1
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x42baeb
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x134], 2
jne 0x42bed9
cmp dword [ebp - 0x140], 4
jbe 0x42bf90
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 0x42bb59
cmp dword [ebp - 0x13c], ebx
jne 0x42bb46
cmp byte [ebp - 0x2a], 1
jne 0x42bb3f
mov ebx, str.Windows_10_Insider_Preview
jmp 0x42bb4b
mov ebx, str.Windows_Server_Technical_Preview
jmp 0x42bb4b
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.0x42bc82.5
mov eax, dword [ebp - 0x13c]
sub eax, 0
je 0x42bc1e
dec eax
je 0x42bbf0
dec eax
je 0x42bbca
dec eax
je 0x42bba4
dec eax
jne 0x42bc41
cmp byte [ebp - 0x2a], 1
jne 0x42bc41
push 0x44f6c4
call esi
pop ecx
push eax
push 0x44f6c4
jmp 0x42bc04
cmp byte [ebp - 0x2a], 1
jne 0x42bbba
push 0x44f6a8
call esi
pop ecx
push eax
push 0x44f6a8
jmp 0x42bc04
push 0x44f678
call esi
pop ecx
push eax
push 0x44f678
jmp 0x42bc04
cmp byte [ebp - 0x2a], 1
jne 0x42bbe0
push 0x44f660
call esi
pop ecx
push eax
push 0x44f660
jmp 0x42bc04
push 0x44f634
call esi
pop ecx
push eax
push 0x44f634
jmp 0x42bc04
cmp byte [ebp - 0x2a], 1
jne 0x42bc0e
push 0x44f61c
call esi
pop ecx
push eax
push 0x44f61c
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 0x42bc41
push 0x44f5ec
call esi
pop ecx
push eax
push 0x44f5ec
jmp 0x42bc04
cmp byte [ebp - 0x2a], 1
mov ebx, 0x44f5cc
je 0x42bc2e
mov ebx, 0x44f5a0
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 0x44e978
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 0x42bcf2
je 0x42bceb
dec eax
cmp eax, 0x11
ja case.0x42bc82.5
jmp dword [eax*4 + 0x42bfaf]
mov ebx, str.Starter_Edition
jmp case.0x42bc82.4
mov ebx, str.Home_Premium_Edition
jmp case.0x42bc82.4
mov ebx, str.Home_Basic_Edition
jmp case.0x42bc82.4
mov ebx, str.Business_Edition
jmp case.0x42bc82.4
mov ebx, str.Cluster_Server_Edition
jmp case.0x42bc82.4
mov ebx, str.Datacenter_Edition
jmp case.0x42bc82.4
mov ebx, str.Datacenter_Edition__core_installation_
jmp case.0x42bc82.4
mov ebx, str.Ultimate_Edition
jmp case.0x42bc82.4
mov ebx, str.Enterprise_Edition__core_installation_
jmp case.0x42bc82.4
mov ebx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp case.0x42bc82.4
mov ebx, str.Small_Business_Server
jmp case.0x42bc82.4
mov ebx, str.Standard_Edition__core_installation_
jmp case.0x42bc82.4
mov ebx, str.Standard_Edition
jmp case.0x42bc82.4
mov ebx, str.Web_Server_Edition
jmp case.0x42bc82.4
mov ebx, str.Small_Business_Server_Premium_Edition
jmp case.0x42bc82.4
cmp eax, 0x30
jne case.0x42bc82.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 0x42bea0
mov eax, dword [ebp - 0x13c]
sub eax, 0
je 0x42be55
dec eax
je 0x42be35
dec eax
je 0x42bd42
mov ebx, str.Unsupported_version_of_Windows
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
jmp 0x42bfa2
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42bd55
mov ebx, 0x44f1e4
jmp 0x42bd86
test byte [ebp - 0x2b], 0x20
je 0x42bd62
mov ebx, 0x44f1a8
jmp 0x42bd86
test byte [ebp - 0x2b], 0x80
je 0x42bd6f
mov ebx, 0x44f17c
jmp 0x42bd86
cmp byte [ebp - 0x2a], 1
jne 0x42bd81
cmp word [ebp - 0x28], 9
mov ebx, 0x44f164
je 0x42bd86
mov ebx, 0x44f138
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 0x42bea0
cmp word [ebp - 0x28], 6
jne 0x42bdc9
test byte [ebp - 0x2c], 0x80
je 0x42bdb5
mov ebx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x42be92
test byte [ebp - 0x2c], 2
je 0x42bea0
mov ebx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42be92
cmp word [ebp - 0x28], 9
jne 0x42bdfa
test byte [ebp - 0x2c], 0x80
je 0x42bde0
mov ebx, str.Datacenter_x64_Edition
jmp 0x42be92
test byte [ebp - 0x2c], 2
je 0x42bdf0
mov ebx, str.Enterprise_x64_Edition
jmp 0x42be92
mov ebx, str.Standard_x64_Edition
jmp 0x42be92
mov eax, dword [ebp - 0x2c]
test ah, 0x40
je 0x42be0c
mov ebx, str.Compute_Cluster_Edition
jmp 0x42be92
test al, 0x80
je 0x42be17
mov ebx, str.Datacenter_Edition
jmp 0x42be92
test al, 2
je 0x42be22
mov ebx, str.Enterprise_Edition
jmp 0x42be92
test ah, 4
je 0x42be2e
mov ebx, str.Web_Edition
jmp 0x42be92
mov ebx, str.Standard_Edition
jmp 0x42be92
mov ebx, 0x44f164
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 0x42be6e
mov ebx, str.Home_Edition
jmp 0x42be92
mov ebx, 0x44efd0
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 0x42be75
mov ebx, str.Professional
jmp 0x42be92
test byte [ebp - 0x2c], 0x80
je 0x42be82
mov ebx, str.Datacenter_Server
jmp 0x42be92
test byte [ebp - 0x2c], 2
mov ebx, str.Advanced_Server
jne 0x42be92
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 0x42bed1
cmp word [ebp - 0x28], 9
jne 0x42beb7
mov ebx, str.__64_bit
jmp 0x42bec3
cmp word [ebp - 0x28], 0
jne 0x42bed1
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 0x42bfaa
cmp dword [ebp - 0x134], 1
jne 0x42bf83
cmp dword [ebp - 0x140], 4
jne 0x42bfa8
cmp dword [ebp - 0x13c], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
jne 0x42bf33
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 0x42bfa8
cmp dword [ebp - 0x13c], 0xa
jne 0x42bf6b
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, 0x44eee8
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 0x42bfa8
cmp dword [ebp - 0x13c], 0x5a
jne 0x42bfa8
mov edi, str.Microsoft_Windows_ME
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
jmp 0x42bfa2
cmp dword [ebp - 0x134], ebx
mov esi, str.Microsoft_Windows_Win32s
je 0x42bf95
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