Function at 0x4095f0
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x220
mov eax, dword [0x421e3c]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
mov dword [esp + 4], eax
test eax, eax
je 0x409cf4
cmp dword [esp + 0x228], 0
je 0x409cf4
push ebp
push 0x3f
lea eax, [esp + 0xe5]
mov ebp, 0x41b676
push 0
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov byte [esp + 0x13], 0
mov byte [esp + 0xec], 0
call fcn.0040a180
xor eax, eax
push 0x9c
push eax
lea ecx, [esp + 0x58]
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call fcn.0040a180
add esp, 0x18
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x48], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x4096c1
xor al, al
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a165
add esp, 0x220
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push esi
push edi
push str.GetNativeSystemInfo
push 0x41d638
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4096ea
lea ecx, [esp + 0x2c]
push ecx
call eax
jmp 0x4096f5
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00409550
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x24]
add esp, 8
test al, al
je 0x409740
cmp esi, 6
ja 0x409729
jne 0x409740
cmp edi, 2
jbe 0x409740
lea edx, [esp + 0xec]
push 0x40
push edx
call fcn.00409590
add esp, 8
mov byte [esp + 0x13], 1
cmp dword [esp + 0x60], 2
jne 0x409cd9
cmp dword [esp + 0x54], 4
jbe 0x409cd9
cmp byte [esp + 0x13], 0
je 0x409844
cmp esi, 0xa
jne 0x409826
test edi, edi
jne 0x409844
cmp byte [esp + 0xea], 1
jne 0x409786
mov ebp, str.Windows_10
jmp 0x409844
lea eax, [esp + 0xec]
mov ebp, str.Windows_Server_Unknown_Version
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409795
sub eax, edx
je 0x409844
lea eax, [esp + 0xec]
push eax
call fcn.0040b42b
add esp, 4
cmp eax, 0x47bb
jg 0x4097fe
je 0x4097f7
cmp eax, 0x4563
jg 0x4097e9
je 0x4097e2
cmp eax, 0x3839
je 0x4097db
cmp eax, 0x3fab
jne 0x409844
mov ebp, str.Windows_Server_Version_1709
jmp 0x409844
mov ebp, str.Windows_Server_2016
jmp 0x409844
mov ebp, str.Windows_Server_2019
jmp 0x409844
cmp eax, 0x47ba
jne 0x409844
mov ebp, str.Windows_Server_Version_1903
jmp 0x409844
mov ebp, str.Windows_Server_Version_1909
jmp 0x409844
sub eax, 0x4a61
je 0x40981f
sub eax, 1
je 0x409818
sub eax, 0x51a
jne 0x409844
mov ebp, str.Windows_Server_2022
jmp 0x409844
mov ebp, str.Windows_Server_Version_20H2
jmp 0x409844
mov ebp, str.Windows_Server_Version_2004
jmp 0x409844
cmp esi, 6
jne 0x409844
cmp edi, 3
jne 0x409844
cmp byte [esp + 0xea], 1
mov ebp, str.Windows_8.1
je 0x409844
mov ebp, str.Windows_Server_2012_R2
cmp dword [esp + 0x54], 6
jne 0x40990c
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x40986f
cmp byte [esp + 0xea], 1
jne 0x409868
mov ebp, str.Windows_Vista
jmp 0x4098ab
mov ebp, str.Windows_Server_2008
jmp 0x4098ab
cmp eax, 1
jne 0x40988b
cmp byte [esp + 0xea], al
jne 0x409884
mov ebp, str.Windows_7
jmp 0x4098ab
mov ebp, str.Windows_Server_2008_R2
jmp 0x4098ab
cmp eax, 2
jne 0x4098ab
cmp byte [esp + 0x13], 0
jne 0x4098ab
cmp byte [esp + 0xea], 1
mov ebp, str.Windows_8
je 0x4098ab
mov ebp, str.Windows_Server_2012
push str.GetProductInfo
push 0x41d638
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [esp + 0x58]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x58]
push 0
push 0
push edx
push ecx
call eax
push 0x100
lea edx, [esp + 0x130]
push 0
push edx
call fcn.0040a180
mov ecx, dword [esp + 0x34]
push 0x100
lea eax, [esp + 0x13c]
push eax
push ecx
call fcn.00408f70
add esp, 0x18
lea edi, [esp + 0x12c]
test al, al
jne 0x409910
mov edi, dword [esp + 0x20]
mov esi, 5
cmp dword [esp + 0x54], esi
jne 0x409a86
mov eax, dword [esp + 0x58]
cmp eax, 2
jne 0x409a41
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xe8]
test eax, eax
je 0x40994a
mov ebp, str.Windows_Server_2003_R2
jmp 0x40998f
mov eax, 0x2000
cmp ax, cx
jne 0x40995b
mov ebp, str.Windows_Storage_Server_2003
jmp 0x40998f
mov eax, 0x8000
cmp ax, cx
jne 0x40996c
mov ebp, str.Windows_Home_Server
jmp 0x40998f
cmp byte [esp + 0xea], 1
jne 0x40998a
mov eax, 9
cmp ax, dx
jne 0x40998a
mov ebp, str.Windows_XP_Professional_x64_Edition
jmp 0x409a1e
mov ebp, str.Windows_Server_2003
cmp byte [esp + 0xea], 1
je 0x409a1e
mov eax, 6
cmp ax, dx
jne 0x4099be
test cl, cl
jns 0x4099b2
mov edi, str.Datacenter_Edition_for_Itanium_based_Systems
jmp 0x409a1e
test cl, 2
je 0x409a1e
mov edi, str.Enterprise_Edition_for_Itanium_based_Systems
jmp 0x409a1e
mov eax, 9
cmp ax, dx
jne 0x4099e6
test cl, cl
jns 0x4099d3
mov edi, str.Datacenter_x64_Edition
jmp 0x409a1e
test cl, 2
je 0x4099df
mov edi, str.Enterprise_x64_Edition
jmp 0x409a1e
mov edi, str.Standard_x64_Edition
jmp 0x409a1e
test ecx, 0x4000
je 0x4099f5
mov edi, str.Compute_Cluster_Edition
jmp 0x409a1e
test cl, cl
jns 0x409a00
mov edi, str.Datacenter_Edition
jmp 0x409a1e
test cl, 2
je 0x409a0c
mov edi, str.Enterprise_Edition
jmp 0x409a1e
mov edi, str.Web_Edition
test ecx, 0x400
jne 0x409a1e
mov edi, str.Standard_Edition
cmp dword [esp + 0x54], esi
jne 0x409a8e
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x409a4e
mov ebp, str.Windows_XP
test ecx, 0x200
je 0x409a61
mov edi, str.Home_Edition
jmp 0x409a90
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0xe8]
jmp 0x409a28
test eax, eax
jne 0x409a90
cmp byte [esp + 0xea], 1
mov ebp, str.Windows_2000
jne 0x409a68
mov edi, str.Professional
jmp 0x409a90
test cl, cl
jns 0x409a73
mov edi, str.Datacenter_Server
jmp 0x409a90
test cl, 2
je 0x409a7f
mov edi, str.Advanced_Server
jmp 0x409a90
mov edi, str.Server
jmp 0x409a90
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x54], esi
jb 0x409aad
mov ecx, 9
cmp cx, dx
jne 0x409aa1
mov esi, str.64_Bit
jmp 0x409ab1
xor eax, eax
mov esi, str.32_Bit
cmp ax, dx
je 0x409ab1
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x54], 4
ja 0x409abd
mov ebp, str.Microsoft_Windows_NT
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ac2
sub eax, edx
lea eax, [esp + 0x64]
lea edx, [eax + 1]
jne 0x409bd0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409ad8
sub eax, edx
jne 0x409b59
cmp byte [esp + 0x13], al
je 0x409b43
lea eax, [esp + 0xec]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409af3
sub eax, edx
je 0x409b43
mov eax, dword [esp + 0x238]
lea ecx, [esp + 0xec]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
push edi
push ebp
push str._s_s_s__Build__s_
dec eax
push eax
push ecx
call fcn.0040b793
add esp, 0x1c
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a165
add esp, 0x220
ret
mov edx, dword [esp + 0x5c]
push edx
lea eax, [esp + 0x68]
push eax
push edi
push ebp
push str._s_s_s__Build__d_
jmp 0x409c1a
cmp byte [esp + 0x13], 0
je 0x409b8c
lea eax, [esp + 0xec]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409b70
sub eax, edx
je 0x409b8c
lea eax, [esp + 0xec]
push eax
push edi
push ebp
push str._s_s_Build__s_
jmp 0x409b98
mov eax, dword [esp + 0x5c]
push eax
push edi
push ebp
push str._s_s_Build__d_
mov ecx, dword [esp + 0x248]
mov edx, dword [esp + 0x24]
dec ecx
push ecx
push edx
call fcn.0040b793
add esp, 0x18
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a165
add esp, 0x220
ret
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409bd0
sub eax, edx
jne 0x409c4b
cmp byte [esp + 0x13], al
je 0x409c0d
lea eax, [esp + 0xec]
lea edx, [eax + 1]
jmp 0x409bf0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409bf0
sub eax, edx
je 0x409c0d
push esi
lea eax, [esp + 0xf0]
push eax
push edi
push ebp
push str._s_s_Build__s___s
jmp 0x409c1a
mov eax, dword [esp + 0x5c]
push esi
push eax
push edi
push ebp
push str._s_s_Build__d___s
mov ecx, dword [esp + 0x24c]
mov edx, dword [esp + 0x28]
dec ecx
push ecx
push edx
call fcn.0040b793
add esp, 0x1c
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a165
add esp, 0x220
ret
cmp byte [esp + 0x13], 0
je 0x409cb1
lea eax, [esp + 0xec]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409c60
sub eax, edx
je 0x409cb1
mov edx, dword [esp + 0x238]
push esi
lea eax, [esp + 0xf0]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
push edi
push ebp
push str._s_s_s__Build__s___s
dec edx
push edx
push eax
call fcn.0040b793
add esp, 0x20
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a165
add esp, 0x220
ret
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x238]
push esi
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x6c]
push edx
push edi
push ebp
push str._s_s_s__Build__d___s
dec eax
push eax
push ecx
call fcn.0040b793
add esp, 0x20
pop edi
pop esi
pop ebx
mov al, 1
pop ebp
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0040a165
add esp, 0x220
ret
mov ecx, dword [esp + 0x21c]
xor ecx, esp
xor al, al
call fcn.0040a165
add esp, 0x220
ret