Function at 0x401360
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4844a0]
xor eax, esp
mov dword [esp + 0x118], eax
xor eax, eax
push esi
mov esi, dword [esp + 0x124]
push 0x9c
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x38]
push eax
call fcn.0044cb90
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40183a
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
push str.kernel32.dll
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x4013fa
lea edx, [esp + 0x10]
push edx
call eax
jmp 0x401405
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x48], 2
push edi
jne 0x4017fa
cmp dword [esp + 0x40], 4
jbe 0x4017fa
mov edi, str.Microsoft
mov edx, pe_nt_image_headers32
mov eax, esi
sub edi, esi
lea ebx, [ebx]
lea ecx, [edx + 0x7ffffefe]
test ecx, ecx
je 0x40144d
mov cl, byte [edi + eax]
test cl, cl
je 0x40144d
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x401430
jmp 0x401451
test edx, edx
jne 0x401454
sub eax, 1
mov edi, 6
cmp dword [esp + 0x40], edi
mov byte [eax], 0
jne 0x401590
cmp dword [esp + 0x44], 0
jne 0x40148e
cmp byte [esp + 0xd6], 1
jne 0x40147e
push str.Windows_Vista
jmp 0x401483
push str.Windows_Server_2008
push pe_nt_image_headers32
push esi
call fcn.00401260
cmp dword [esp + 0x44], 1
jne 0x4014b6
cmp byte [esp + 0xd6], 1
jne 0x4014a6
push str.Windows_7
jmp 0x4014ab
push str.Windows_Server_2008_R2
push pe_nt_image_headers32
push esi
call fcn.00401260
push str.GetProductInfo
push str.kernel32.dll
call ebp
push eax
call ebx
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x44]
push 0
push 0
push ecx
push edx
call eax
mov eax, dword [esp + 0x10]
add eax, 0xffffffff
cmp eax, 0x18
ja case.0x4014ea.4
jmp dword [eax*4 + 0x401858]
push str.Ultimate_Edition
jmp 0x40155f
push str.Home_Premium_Edition
jmp 0x40155f
push str.Home_Basic_Edition
jmp 0x40155f
push str.Enterprise_Edition
jmp 0x40155f
push str.Business_Edition
jmp 0x40155f
push str.Starter_Edition
jmp 0x40155f
push str.Cluster_Server_Edition
jmp 0x40155f
push str.Datacenter_Edition
jmp 0x40155f
push str.Datacenter_Edition__core_installation_
jmp 0x40155f
push str.Enterprise_Edition__core_installation_
jmp 0x40155f
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x40155f
push str.Small_Business_Server
jmp 0x40155f
push str.Small_Business_Server_Premium_Edition
jmp 0x40155f
push str.Standard_Edition
jmp 0x40155f
push str.Standard_Edition__core_installation_
jmp 0x40155f
push str.Web_Server_Edition
push pe_nt_image_headers32
push esi
call fcn.00401260
mov eax, dword [esp + 0x14]
cmp ax, 9
jne 0x40157b
push str.__64_bit
jmp 0x401585
test ax, ax
jne 0x401590
push str.__32_bit
push pe_nt_image_headers32
push esi
call fcn.00401260
mov ebx, 5
cmp dword [esp + 0x40], ebx
jne 0x40174e
cmp dword [esp + 0x44], 2
jne 0x4016b8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x4015bd
push str.Windows_Server_2003_R2_
jmp 0x4015fc
mov eax, dword [esp + 0xd4]
cmp ax, 0x2000
jne 0x4015d1
push str.Windows_Storage_Server_2003
jmp 0x4015fc
cmp ax, 0x8000
jne 0x4015de
push str.Windows_Home_Server
jmp 0x4015fc
cmp byte [esp + 0xd6], 1
jne 0x4015f7
cmp word [esp + 0x14], 9
jne 0x4015f7
push str.Windows_XP_Professional_x64_Edition
jmp 0x4015fc
push str.Windows_Server_2003_
push pe_nt_image_headers32
push esi
call fcn.00401260
cmp byte [esp + 0xd6], 1
je 0x4016ae
mov eax, dword [esp + 0x14]
cmp ax, di
jne 0x40163b
mov al, byte [esp + 0xd4]
test al, al
jns 0x401630
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x4016a3
test al, 2
je 0x4016ae
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x4016a3
cmp ax, 9
jne 0x401665
mov al, byte [esp + 0xd4]
test al, al
jns 0x401653
push str.Datacenter_x64_Edition
jmp 0x4016a3
test al, 2
je 0x40165e
push str.Enterprise_x64_Edition
jmp 0x4016a3
push str.Standard_x64_Edition
jmp 0x4016a3
mov eax, dword [esp + 0xd4]
test eax, 0x4000
je 0x40167a
push str.Compute_Cluster_Edition
jmp 0x4016a3
test al, al
jns 0x401685
push str.Datacenter_Edition
jmp 0x4016a3
test al, 2
je 0x401690
push str.Enterprise_Edition
jmp 0x4016a3
test eax, 0x400
je 0x40169e
push str.Web_Edition
jmp 0x4016a3
push str.Standard_Edition
push pe_nt_image_headers32
push esi
call fcn.00401260
cmp dword [esp + 0x40], ebx
jne 0x40174e
cmp dword [esp + 0x44], 1
jne 0x4016f9
push str.Windows_XP
push pe_nt_image_headers32
push esi
call fcn.00401260
test dword [esp + 0xd4], 0x200
je 0x4016e3
push str.Home_Edition
jmp 0x4016e8
push str.Professional
push pe_nt_image_headers32
push esi
call fcn.00401260
cmp dword [esp + 0x40], ebx
jne 0x40174e
cmp dword [esp + 0x44], 0
jne 0x40174e
push str.Windows_2000
push pe_nt_image_headers32
push esi
call fcn.00401260
cmp byte [esp + 0xd6], 1
jne 0x401721
push str.Professional
jmp 0x401743
mov al, byte [esp + 0xd4]
test al, al
jns 0x401733
push str.Datacenter_Server
jmp 0x401743
test al, 2
je 0x40173e
push str.Advanced_Server
jmp 0x401743
push str.Server
push pe_nt_image_headers32
push esi
call fcn.00401260
push 0x46ba94
push pe_nt_image_headers32
push esi
call fcn.00401260
lea eax, [esp + 0x50]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x401765
sub eax, edx
je 0x401792
lea eax, [esp + 0x50]
push eax
push pe_nt_image_headers32
push esi
call fcn.00401260
push 0x46ba90
push pe_nt_image_headers32
push esi
call fcn.00401260
mov ecx, dword [esp + 0x48]
push ecx
push str.build__d
lea edx, [esp + 0xe0]
push 0x50
push edx
call fcn.00401300
add esp, 0x10
lea eax, [esp + 0xd8]
push eax
push pe_nt_image_headers32
push esi
call fcn.00401260
cmp dword [esp + 0x40], edi
jb 0x401837
mov eax, dword [esp + 0x14]
cmp ax, 9
jne 0x4017e3
push str.__64_bit
push pe_nt_image_headers32
push esi
call fcn.00401260
jmp 0x401837
test ax, ax
jne 0x401837
push str.__32_bit
push pe_nt_image_headers32
push esi
call fcn.00401260
jmp 0x401837
mov edi, str.UNDER
mov edx, pe_nt_image_headers32
mov eax, esi
sub edi, esi
jmp 0x401810
lea ecx, [edx + 0x7ffffefe]
test ecx, ecx
je 0x40182d
mov cl, byte [edi + eax]
test cl, cl
je 0x40182d
mov byte [eax], cl
add eax, 1
sub edx, 1
jne 0x401810
jmp 0x401831
test edx, edx
jne 0x401834
sub eax, 1
mov byte [eax], 0
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x11c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0044cb81
add esp, 0x11c
ret 4