Function at 0x414800
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x11c
mov eax, dword [0x45e764]
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.004338b0
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x414887
mov eax, 1
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00432ccc
add esp, 0x11c
ret
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.GetNativeSystemInfo
push 0x44cc54
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
test eax, eax
je 0x4148b1
lea edx, [esp + 0x10]
push edx
call eax
jmp 0x4148bc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x48], 2
jne 0x414c9d
cmp dword [esp + 0x3c], 4
jbe 0x414c9d
push edi
mov edi, str.Microsoft
mov edx, 0x100
mov eax, esi
sub edi, esi
lea ecx, [edx + 0x7ffffefe]
test ecx, ecx
je 0x4148fc
mov cl, byte [edi + eax]
test cl, cl
je 0x4148fc
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x4148e1
jmp 0x414900
test edx, edx
jne 0x414901
dec eax
mov edi, 6
mov byte [eax], 0
cmp dword [esp + 0x40], edi
jne case.0x41499c.5
cmp dword [esp + 0x44], 0
jne 0x41493b
cmp byte [esp + 0xd6], 1
jne 0x41492b
push str.Windows_Vista
jmp 0x414930
push str.Windows_Server_2008
push 0x100
push esi
call fcn.00414710
cmp dword [esp + 0x44], 1
jne 0x414963
cmp byte [esp + 0xd6], 1
jne 0x414953
push str.Windows_7
jmp 0x414958
push str.Windows_Server_2008_R2
push 0x100
push esi
call fcn.00414710
push str.GetProductInfo
push 0x44cc54
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]
dec eax
cmp eax, 0x2f
ja case.0x41499c.5
movzx eax, byte [eax + 0x414d0c]
jmp dword [eax*4 + 0x414cc4]
push str.Ultimate_Edition
jmp 0x414a18
push str.Professional
jmp 0x414a18
push str.Home_Premium_Edition
jmp 0x414a18
push str.Home_Basic_Edition
jmp 0x414a18
push str.Enterprise_Edition
jmp 0x414a18
push str.Business_Edition
jmp 0x414a18
push str.Starter_Edition
jmp 0x414a18
push str.Cluster_Server_Edition
jmp 0x414a18
push str.Datacenter_Edition
jmp 0x414a18
push str.Datacenter_Edition__core_installation_
jmp 0x414a18
push str.Enterprise_Edition__core_installation_
jmp 0x414a18
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x414a18
push str.Small_Business_Server
jmp 0x414a18
push str.Small_Business_Server_Premium_Edition
jmp 0x414a18
push str.Standard_Edition
jmp 0x414a18
push str.Standard_Edition__core_installation_
jmp 0x414a18
push str.Web_Server_Edition
push 0x100
push esi
call fcn.00414710
mov ebx, 5
cmp dword [esp + 0x40], ebx
jne 0x414bd8
cmp dword [esp + 0x44], 2
jne 0x414b42
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x414a50
push str.Windows_Server_2003_R2_
jmp 0x414a82
test dword [esp + 0xd4], 0x2000
je 0x414a64
push str.Windows_Storage_Server_2003
jmp 0x414a82
cmp byte [esp + 0xd6], 1
jne 0x414a7d
cmp word [esp + 0x14], 9
jne 0x414a7d
push str.Windows_XP_Professional_x64_Edition
jmp 0x414a82
push str.Windows_Server_2003_
push 0x100
push esi
call fcn.00414710
cmp byte [esp + 0xd6], 1
je 0x414b38
mov eax, dword [esp + 0x14]
cmp ax, di
jne 0x414ac5
mov al, byte [esp + 0xd4]
test al, al
jns 0x414ab6
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x414b2d
test al, 2
je 0x414b38
push str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x414b2d
cmp ax, 9
jne 0x414aef
mov al, byte [esp + 0xd4]
test al, al
jns 0x414add
push str.Datacenter_x64_Edition
jmp 0x414b2d
test al, 2
je 0x414ae8
push str.Enterprise_x64_Edition
jmp 0x414b2d
push str.Standard_x64_Edition
jmp 0x414b2d
mov eax, dword [esp + 0xd4]
test eax, 0x4000
je 0x414b04
push str.Compute_Cluster_Edition
jmp 0x414b2d
test al, al
jns 0x414b0f
push str.Datacenter_Edition
jmp 0x414b2d
test al, 2
je 0x414b1a
push str.Enterprise_Edition
jmp 0x414b2d
test eax, 0x400
je 0x414b28
push str.Web_Edition
jmp 0x414b2d
push str.Standard_Edition
push 0x100
push esi
call fcn.00414710
cmp dword [esp + 0x40], ebx
jne 0x414bd8
cmp dword [esp + 0x44], 1
jne 0x414b83
push str.Windows_XP
push 0x100
push esi
call fcn.00414710
test dword [esp + 0xd4], 0x200
je 0x414b6d
push str.Home_Edition
jmp 0x414b72
push str.Professional
push 0x100
push esi
call fcn.00414710
cmp dword [esp + 0x40], ebx
jne 0x414bd8
cmp dword [esp + 0x44], 0
jne 0x414bd8
push str.Windows_2000
push 0x100
push esi
call fcn.00414710
cmp byte [esp + 0xd6], 1
jne 0x414bab
push str.Professional
jmp 0x414bcd
mov al, byte [esp + 0xd4]
test al, al
jns 0x414bbd
push str.Datacenter_Server
jmp 0x414bcd
test al, 2
je 0x414bc8
push str.Advanced_Server
jmp 0x414bcd
push str.Server
push 0x100
push esi
call fcn.00414710
lea eax, [esp + 0x50]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x414be0
sub eax, edx
je 0x414c0b
push 0x44ed68
push 0x100
push esi
call fcn.00414710
lea ecx, [esp + 0x50]
push ecx
push 0x100
push esi
call fcn.00414710
push 0x4f
lea edx, [esp + 0xdd]
push 0
push edx
mov byte [esp + 0xe4], 0
call fcn.004338b0
mov eax, dword [esp + 0x54]
push eax
push str.__build__d_
lea ecx, [esp + 0xec]
push 0x50
push ecx
call fcn.004147a0
add esp, 0x1c
lea edx, [esp + 0xd8]
push edx
push 0x100
push esi
call fcn.00414710
cmp dword [esp + 0x40], edi
pop edi
jb 0x414c80
mov eax, dword [esp + 0x10]
cmp ax, 9
jne 0x414c6b
push str.__64_bit
jmp 0x414c75
test ax, ax
jne 0x414c80
push str.__32_bit
push 0x100
push esi
call fcn.00414710
pop ebp
pop ebx
mov eax, 1
pop esi
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.00432ccc
add esp, 0x11c
ret
push str.This_sample_does_not_support_this_version_of_Windows._n
call fcn.004339e9
mov ecx, dword [esp + 0x128]
add esp, 4
pop ebp
pop ebx
pop esi
xor ecx, esp
xor eax, eax
call fcn.00432ccc
add esp, 0x11c
ret