Function at 0x406ee0
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x9f0
mov eax, dword [0x4d6720]
xor eax, esp
mov dword [esp + 0x9ec], eax
xor eax, eax
push ebx
push esi
mov esi, dword [esp + 0x9fc]
push 0x11c
push 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
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x1c], esi
call fcn.00482db0
mov ebx, 1
lea ecx, [esp + 0x44]
push ebx
push ecx
mov dword [esp + 0x4c], 0x11c
call fcn.004060e0
add esp, 0x14
test eax, eax
jne 0x406f7c
push ebx
push 0x4a801c
mov ecx, esi
call fcn.00401760
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9ec]
xor ecx, esp
call fcn.00482b5f
add esp, 0x9f0
ret
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push str.kernel32.dll
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
test eax, eax
je 0x406fa6
lea edx, [esp + 0x1c]
push edx
call eax
jmp 0x406fb1
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x50], 2
jne 0x40775f
cmp dword [esp + 0x44], 4
jbe 0x40775f
lea eax, [esp + 0x15c]
mov esi, str.Microsoft
mov ecx, eax
mov edx, 0x400
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffbfe]
test ecx, ecx
je 0x406fff
movzx ecx, word [esi + eax]
test cx, cx
je 0x406fff
mov word [eax], cx
add eax, 2
sub edx, ebx
jne 0x406fe0
jmp 0x407003
test edx, edx
jne 0x407006
sub eax, 2
xor edx, edx
mov word [eax], dx
mov eax, dword [esp + 0x44]
cmp eax, 0xa
jne 0x407055
cmp dword [esp + 0x48], edx
jne 0x407184
cmp byte [esp + 0x15a], bl
jne 0x40703e
push str.Windows_10
push 0x400
lea eax, [esp + 0x164]
push eax
jmp 0x40717f
push str.Windows_Server_10
push 0x400
lea ecx, [esp + 0x164]
push ecx
jmp 0x40717f
cmp eax, 6
jne 0x4073ff
cmp dword [esp + 0x48], 0
jne 0x407099
cmp byte [esp + 0x15a], bl
jne 0x407082
push str.Windows_Vista
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x407094
push str.Windows_Server_2008
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
cmp dword [esp + 0x48], ebx
jne 0x4070d3
cmp byte [esp + 0x15a], bl
jne 0x4070bc
push str.Windows_7
push 0x400
lea ecx, [esp + 0x164]
push ecx
jmp 0x4070ce
push str.Windows_Server_2008_R2
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
cmp dword [esp + 0x48], 2
jne 0x40710e
cmp byte [esp + 0x15a], bl
jne 0x4070f7
push str.Windows_8
push 0x400
lea eax, [esp + 0x164]
push eax
jmp 0x407109
push str.Windows_Server_2012
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
cmp dword [esp + 0x48], 3
jne 0x407149
cmp byte [esp + 0x15a], bl
jne 0x407132
push str.Windows_8.1
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x407144
push str.Windows_Server_2012_R2
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
cmp dword [esp + 0x48], 4
jne 0x407184
cmp byte [esp + 0x15a], bl
jne 0x40716d
push str.Windows_10_Preview
push 0x400
lea ecx, [esp + 0x164]
push ecx
jmp 0x40717f
push str.Windows_Server_10_Preview
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
push str.GetProductInfo
push str.kernel32.dll
call edi
push eax
call ebp
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x48]
push 0
push 0
push edx
push ecx
call eax
mov ecx, dword [esp + 0x14]
lea eax, [ecx - 1]
cmp eax, 0x64
ja case.0x4071bf.5
movzx edx, byte [eax + 0x4077d8]
jmp dword [edx*4 + 0x407788]
push str.Ultimate_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
jmp 0x4073ff
push str.Professional
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
jmp 0x4073ff
push str.Home_Premium_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
jmp 0x4073ff
push str.Home_Basic_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
jmp 0x4073ff
push str.Enterprise_Edition
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
jmp 0x4073ff
push str.Business_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
jmp 0x4073ff
push str.Starter_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
jmp 0x4073ff
push str.Cluster_Server_Edition
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
jmp 0x4073ff
push str.Datacenter_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
jmp 0x4073ff
push str.Datacenter_Edition__core_installation_
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
jmp 0x4073ff
push str.Enterprise_Edition__core_installation_
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
jmp 0x4073ff
push str.Enterprise_Edition_for_Itanium_based_Systems
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
jmp 0x4073ff
push str.Small_Business_Server
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
jmp 0x4073ff
push str.Small_Business_Server_Premium_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
jmp 0x4073ff
push str.Standard_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
jmp 0x4073ff
push str.Standard_Edition__core_installation_
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
jmp 0x4073ff
push str.Web_Server_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
jmp 0x4073ff
push str.Core
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
jmp 0x4073ff
push str.Consumer_Preview
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
jmp 0x4073ff
push ecx
lea edx, [esp + 0x14]
push str._0x_X_
push edx
call fcn.00411be0
mov eax, dword [eax]
add esp, 0xc
push eax
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
lea ecx, [esp + 0x10]
call fcn.0041f860
mov esi, 5
cmp dword [esp + 0x44], esi
jne 0x40768f
cmp dword [esp + 0x48], 2
jne 0x4075b8
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je 0x407439
push str.Windows_Server_2003_R2_
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x4074a0
mov eax, dword [esp + 0x158]
test eax, 0x2000
je 0x40744e
push str.Windows_Storage_Server_2003
jmp 0x407493
test eax, 0x8000
je 0x407469
push str.Windows_Home_Server
push 0x400
lea ecx, [esp + 0x164]
push ecx
jmp 0x4074a0
cmp byte [esp + 0x15a], bl
jne 0x40748e
cmp word [esp + 0x1c], 9
jne 0x40748e
push str.Windows_XP_Professional_x64_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x4074a0
push str.Windows_Server_2003_
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
cmp byte [esp + 0x15a], bl
je 0x4075ae
mov eax, dword [esp + 0x1c]
cmp ax, 6
jne 0x4074f0
mov al, byte [esp + 0x158]
test al, al
jns 0x4074d1
push str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x40759c
test al, 2
je 0x4075ae
push str.Enterprise_Edition_for_Itanium_based_Systems
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x4075a9
cmp ax, 9
jne 0x407537
mov al, byte [esp + 0x158]
test al, al
jns 0x407518
push str.Datacenter_x64_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
jmp 0x4075a9
test al, 2
je 0x407523
push str.Enterprise_x64_Edition
jmp 0x40759c
push str.Standard_x64_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x4075a9
mov eax, dword [esp + 0x158]
test eax, 0x4000
je 0x407559
push str.Compute_Cluster_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
jmp 0x4075a9
test al, al
jns 0x407564
push str.Datacenter_Edition
jmp 0x40759c
test al, 2
je 0x40757c
push str.Enterprise_Edition
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x4075a9
test eax, 0x400
je 0x407597
push str.Web_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
jmp 0x4075a9
push str.Standard_Edition
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
cmp dword [esp + 0x44], esi
jne 0x40768f
cmp dword [esp + 0x48], ebx
jne 0x407613
push str.Windows_XP
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
test dword [esp + 0x158], 0x200
je 0x4075f6
push str.Home_Edition
push 0x400
lea eax, [esp + 0x164]
push eax
jmp 0x407608
push str.Professional
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
cmp dword [esp + 0x44], esi
jne 0x40768f
cmp dword [esp + 0x48], 0
jne 0x40768f
push str.Windows_2000
push 0x400
lea edx, [esp + 0x164]
push edx
call fcn.00405fd0
cmp byte [esp + 0x15a], bl
jne 0x407641
push str.Professional
jmp 0x40767d
mov al, byte [esp + 0x158]
test al, al
jns 0x407660
push str.Datacenter_Server
push 0x400
lea ecx, [esp + 0x164]
push ecx
jmp 0x40768a
test al, 2
je 0x407678
push str.Advanced_Server
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x40768a
push 0x4a7774
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
lea eax, [esp + 0x54]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407696
sub eax, edx
sar eax, 1
je 0x4076d5
push 0x4a7770
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
lea edx, [esp + 0x54]
push edx
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
mov ecx, dword [esp + 0x4c]
push ecx
push str.__build__d_
lea edx, [esp + 0x964]
push 0x50
push edx
call fcn.00406070
add esp, 0x10
lea eax, [esp + 0x95c]
push eax
push 0x400
lea ecx, [esp + 0x164]
push ecx
call fcn.00405fd0
cmp dword [esp + 0x44], 6
jb 0x40774c
mov eax, dword [esp + 0x1c]
cmp ax, 9
jne 0x407730
push str.__64_bit
push 0x400
lea edx, [esp + 0x164]
push edx
jmp 0x407747
test ax, ax
jne 0x40774c
push str.__32_bit
push 0x400
lea eax, [esp + 0x164]
push eax
call fcn.00405fd0
lea ecx, [esp + 0x15c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.00401d90
jmp 0x40776d
push 0x1a
push str.Unknown_version_of_Windows
mov ecx, esi
call fcn.00401760
mov ecx, dword [esp + 0x9fc]
pop edi
pop ebp
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00482b5f
add esp, 0x9f0
ret