Function at 0x42b759
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 0x42bbae
push str.GetNativeSystemInfo
push 0x44fc34
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
je 0x42b7be
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x42b7c8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x134], 2
jne 0x42bbb6
cmp dword [ebp - 0x140], 4
jbe 0x42bc6d
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 0x42b836
cmp dword [ebp - 0x13c], ebx
jne 0x42b823
cmp byte [ebp - 0x2a], 1
jne 0x42b81c
mov ebx, str.Windows_10_Insider_Preview
jmp 0x42b828
mov ebx, str.Windows_Server_Technical_Preview
jmp 0x42b828
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.0x42b95f.5
mov eax, dword [ebp - 0x13c]
sub eax, 0
je 0x42b8fb
dec eax
je 0x42b8cd
dec eax
je 0x42b8a7
dec eax
je 0x42b881
dec eax
jne 0x42b91e
cmp byte [ebp - 0x2a], 1
jne 0x42b91e
push 0x450980
call esi
pop ecx
push eax
push 0x450980
jmp 0x42b8e1
cmp byte [ebp - 0x2a], 1
jne 0x42b897
push 0x450964
call esi
pop ecx
push eax
push 0x450964
jmp 0x42b8e1
push 0x450934
call esi
pop ecx
push eax
push 0x450934
jmp 0x42b8e1
cmp byte [ebp - 0x2a], 1
jne 0x42b8bd
push 0x45091c
call esi
pop ecx
push eax
push 0x45091c
jmp 0x42b8e1
push 0x4508f0
call esi
pop ecx
push eax
push 0x4508f0
jmp 0x42b8e1
cmp byte [ebp - 0x2a], 1
jne 0x42b8eb
push 0x4508d8
call esi
pop ecx
push eax
push 0x4508d8
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 0x42b91e
push 0x4508a8
call esi
pop ecx
push eax
push 0x4508a8
jmp 0x42b8e1
cmp byte [ebp - 0x2a], 1
mov ebx, 0x450888
je 0x42b90b
mov ebx, 0x45085c
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 0x44fc34
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 0x42b9cf
je 0x42b9c8
dec eax
cmp eax, 0x11
ja case.0x42b95f.5
jmp dword [eax*4 + 0x42bc8c]
mov ebx, str.Starter_Edition
jmp case.0x42b95f.4
mov ebx, str.Home_Premium_Edition
jmp case.0x42b95f.4
mov ebx, str.Home_Basic_Edition
jmp case.0x42b95f.4
mov ebx, str.Business_Edition
jmp case.0x42b95f.4
mov ebx, str.Cluster_Server_Edition
jmp case.0x42b95f.4
mov ebx, str.Datacenter_Edition
jmp case.0x42b95f.4
mov ebx, str.Datacenter_Edition__core_installation_
jmp case.0x42b95f.4
mov ebx, str.Ultimate_Edition
jmp case.0x42b95f.4
mov ebx, str.Enterprise_Edition__core_installation_
jmp case.0x42b95f.4
mov ebx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp case.0x42b95f.4
mov ebx, str.Small_Business_Server
jmp case.0x42b95f.4
mov ebx, str.Standard_Edition__core_installation_
jmp case.0x42b95f.4
mov ebx, str.Standard_Edition
jmp case.0x42b95f.4
mov ebx, str.Web_Server_Edition
jmp case.0x42b95f.4
mov ebx, str.Small_Business_Server_Premium_Edition
jmp case.0x42b95f.4
cmp eax, 0x30
jne case.0x42b95f.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 0x42bb7d
mov eax, dword [ebp - 0x13c]
sub eax, 0
je 0x42bb32
dec eax
je 0x42bb12
dec eax
je 0x42ba1f
mov ebx, str.Unsupported_version_of_Windows
push ebx
call esi
pop ecx
push eax
push ebx
mov ecx, edi
jmp 0x42bc7f
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x42ba32
mov ebx, 0x4504a0
jmp 0x42ba63
test byte [ebp - 0x2b], 0x20
je 0x42ba3f
mov ebx, 0x450464
jmp 0x42ba63
test byte [ebp - 0x2b], 0x80
je 0x42ba4c
mov ebx, 0x450438
jmp 0x42ba63
cmp byte [ebp - 0x2a], 1
jne 0x42ba5e
cmp word [ebp - 0x28], 9
mov ebx, 0x450420
je 0x42ba63
mov ebx, 0x4503f4
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 0x42bb7d
cmp word [ebp - 0x28], 6
jne 0x42baa6
test byte [ebp - 0x2c], 0x80
je 0x42ba92
mov ebx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x42bb6f
test byte [ebp - 0x2c], 2
je 0x42bb7d
mov ebx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x42bb6f
cmp word [ebp - 0x28], 9
jne 0x42bad7
test byte [ebp - 0x2c], 0x80
je 0x42babd
mov ebx, str.Datacenter_x64_Edition
jmp 0x42bb6f
test byte [ebp - 0x2c], 2
je 0x42bacd
mov ebx, str.Enterprise_x64_Edition
jmp 0x42bb6f
mov ebx, str.Standard_x64_Edition
jmp 0x42bb6f
mov eax, dword [ebp - 0x2c]
test ah, 0x40
je 0x42bae9
mov ebx, str.Compute_Cluster_Edition
jmp 0x42bb6f
test al, 0x80
je 0x42baf4
mov ebx, str.Datacenter_Edition
jmp 0x42bb6f
test al, 2
je 0x42baff
mov ebx, str.Enterprise_Edition
jmp 0x42bb6f
test ah, 4
je 0x42bb0b
mov ebx, str.Web_Edition
jmp 0x42bb6f
mov ebx, str.Standard_Edition
jmp 0x42bb6f
mov ebx, 0x450420
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 0x42bb4b
mov ebx, str.Home_Edition
jmp 0x42bb6f
mov ebx, 0x45028c
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 0x42bb52
mov ebx, str.Professional
jmp 0x42bb6f
test byte [ebp - 0x2c], 0x80
je 0x42bb5f
mov ebx, str.Datacenter_Server
jmp 0x42bb6f
test byte [ebp - 0x2c], 2
mov ebx, str.Advanced_Server
jne 0x42bb6f
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 0x42bbae
cmp word [ebp - 0x28], 9
jne 0x42bb94
mov ebx, str.__64_bit
jmp 0x42bba0
cmp word [ebp - 0x28], 0
jne 0x42bbae
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 0x42bc87
cmp dword [ebp - 0x134], 1
jne 0x42bc60
cmp dword [ebp - 0x140], 4
jne 0x42bc85
cmp dword [ebp - 0x13c], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
jne 0x42bc10
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 0x42bc85
cmp dword [ebp - 0x13c], 0xa
jne 0x42bc48
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, 0x4501a4
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 0x42bc85
cmp dword [ebp - 0x13c], 0x5a
jne 0x42bc85
mov edi, str.Microsoft_Windows_ME
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
jmp 0x42bc7f
cmp dword [ebp - 0x134], ebx
mov esi, str.Microsoft_Windows_Win32s
je 0x42bc72
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