Function at 0x41df51
Capabilities:
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 fcn.0041e6c9
test eax, eax
pop ecx
je 0x41e324
push str.GetNativeSystemInfo
push 0x439484
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ebx, ebx
cmp eax, ebx
je 0x41dfb6
lea ecx, [ebp - 0x28]
push ecx
call eax
jmp 0x41dfc0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0x134], 2
jne 0x41e32c
cmp dword [ebp - 0x140], 4
jbe 0x41e3e3
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], 6
jne 0x41e164
mov eax, dword [ebp - 0x13c]
sub eax, ebx
je 0x41e062
dec eax
je 0x41e04e
dec eax
je 0x41e03a
dec eax
je 0x41e026
dec eax
jne 0x41e080
cmp byte [ebp - 0x2a], 1
jne 0x41e080
mov ebx, 0x43a230
jmp 0x41e072
cmp byte [ebp - 0x2a], 1
jne 0x41e033
mov ebx, 0x43a214
jmp 0x41e072
mov ebx, 0x43a1e4
jmp 0x41e072
cmp byte [ebp - 0x2a], 1
jne 0x41e047
mov ebx, 0x43a1cc
jmp 0x41e072
mov ebx, 0x43a1a0
jmp 0x41e072
cmp byte [ebp - 0x2a], 1
jne 0x41e05b
mov ebx, 0x43a188
jmp 0x41e072
mov ebx, 0x43a158
jmp 0x41e072
cmp byte [ebp - 0x2a], 1
mov ebx, 0x43a138
je 0x41e072
mov ebx, 0x43a10c
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 str.GetProductInfo
push 0x439484
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 0x41e156
je 0x41e14c
dec eax
cmp eax, 0x11
ja case.0x41e0c9.5
jmp dword [eax*4 + 0x41e402]
mov ebx, str.Starter_Edition
jmp 0x41e2e5
mov ebx, str.Home_Premium_Edition
jmp 0x41e2e5
mov ebx, str.Home_Basic_Edition
jmp 0x41e2e5
mov ebx, str.Business_Edition
jmp 0x41e2e5
mov ebx, str.Cluster_Server_Edition
jmp 0x41e2e5
mov ebx, str.Datacenter_Edition__core_installation_
jmp 0x41e2e5
mov ebx, str.Ultimate_Edition
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_]
jmp case.0x41e0c9.4
mov ebx, str.Enterprise_Edition__core_installation_
jmp 0x41e2e5
mov ebx, str.Small_Business_Server
jmp 0x41e2e5
mov ebx, str.Standard_Edition__core_installation_
jmp 0x41e2e5
mov ebx, str.Web_Server_Edition
jmp 0x41e2e5
mov ebx, str.Small_Business_Server_Premium_Edition
jmp 0x41e2e5
cmp eax, 0x30
jne case.0x41e0c9.5
jmp 0x41e2c1
cmp dword [ebp - 0x140], 5
jne case.0x41e0c9.5
cmp dword [ebp - 0x13c], 2
jne 0x41e277
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x41e191
mov ebx, str.Windows_Server_2003_R2_
jmp 0x41e1c2
test byte [ebp - 0x2b], 0x20
je 0x41e19e
mov ebx, 0x439e14
jmp 0x41e1c2
test byte [ebp - 0x2b], 0x80
je 0x41e1ab
mov ebx, 0x439de8
jmp 0x41e1c2
cmp byte [ebp - 0x2a], 1
jne 0x41e1bd
cmp word [ebp - 0x28], 9
mov ebx, str.Windows_XP_Professional_x64_Edition
je 0x41e1c2
mov ebx, str.Windows_Server_2003_
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 case.0x41e0c9.5
cmp word [ebp - 0x28], 6
jne 0x41e205
test byte [ebp - 0x2c], 0x80
je 0x41e1f1
mov ebx, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x41e2e5
test byte [ebp - 0x2c], 2
je case.0x41e0c9.5
mov ebx, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x41e2e5
cmp word [ebp - 0x28], 9
jne 0x41e236
test byte [ebp - 0x2c], 0x80
je 0x41e21c
mov ebx, str.Datacenter_x64_Edition
jmp 0x41e2e5
test byte [ebp - 0x2c], 2
je 0x41e22c
mov ebx, str.Enterprise_x64_Edition
jmp 0x41e2e5
mov ebx, str.Standard_x64_Edition
jmp 0x41e2e5
mov eax, dword [ebp - 0x2c]
test ah, 0x40
je 0x41e248
mov ebx, str.Compute_Cluster_Edition
jmp 0x41e2e5
test al, 0x80
je 0x41e256
mov ebx, str.Datacenter_Edition
jmp 0x41e2e5
test al, 2
je 0x41e264
mov ebx, str.Enterprise_Edition
jmp 0x41e2e5
test ah, 4
je case.0x41e0c9.7
mov ebx, str.Web_Edition
jmp 0x41e2e5
mov ebx, str.Standard_Edition
jmp 0x41e2e5
cmp dword [ebp - 0x13c], 1
jne 0x41e2a0
mov ebx, 0x439b58
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 0x41e2c1
mov ebx, str.Home_Edition
jmp 0x41e2e5
cmp dword [ebp - 0x13c], ebx
jne 0x41e324
mov ebx, 0x439b20
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 0x41e2c8
mov ebx, str.Professional
jmp 0x41e2e5
test byte [ebp - 0x2c], 0x80
je 0x41e2d5
mov ebx, str.Datacenter_Server
jmp 0x41e2e5
test byte [ebp - 0x2c], 2
mov ebx, str.Advanced_Server
jne 0x41e2e5
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 0x41e324
cmp word [ebp - 0x28], 9
jne 0x41e30a
mov ebx, str.__64_bit
jmp 0x41e316
cmp word [ebp - 0x28], 0
jne 0x41e324
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 0x41e3fd
cmp dword [ebp - 0x134], 1
jne 0x41e3d6
cmp dword [ebp - 0x140], 4
jne 0x41e3fb
cmp dword [ebp - 0x13c], ebx
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
jne 0x41e386
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 0x41e3fb
cmp dword [ebp - 0x13c], 0xa
jne 0x41e3be
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, 0x439a1c
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 0x41e3fb
cmp dword [ebp - 0x13c], 0x5a
jne 0x41e3fb
mov edi, str.Microsoft_Windows_ME
push edi
call esi
pop ecx
push eax
push edi
mov ecx, ebx
jmp 0x41e3f5
cmp dword [ebp - 0x134], ebx
mov esi, str.Microsoft_Windows_Win32s
je 0x41e3e8
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