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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50fab0
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x5524b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x12c], 0x11c
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x435a1f.3
lea ecx, [ebp - 0x16c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edx, dword [ebp - 0x128]
mov dword [ebp - 0x134], edx
mov eax, dword [ebp - 0x134]
sub eax, 4
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 6
ja case.0x435a1f.3
mov ecx, dword [ebp - 0x134]
jmp dword [ecx*4 + 0x435ec4]
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0
je 0x435a56
cmp dword [ebp - 0x138], 0xa
je 0x435ab4
cmp dword [ebp - 0x138], 0x5a
je 0x435ada
jmp 0x435afe
cmp dword [ebp - 0x11c], 2
jne 0x435a85
push str.Windows_NT_4.0
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
cmp dword [ebp - 0x11c], 1
jne 0x435ab2
push str.Windows_95
mov ecx, dword [ebp + 8]
call fcn.00409570
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x435ea9
jmp 0x435afe
push str.Windows_98
mov ecx, dword [ebp + 8]
call fcn.00409570
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x435ea9
push str.Windows_Me
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
jmp case.0x435a1f.3
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x13c], 0
je 0x435b2f
cmp dword [ebp - 0x13c], 1
je 0x435b58
cmp dword [ebp - 0x13c], 2
je 0x435b7e
jmp 0x435be6
push 0x5193a8
mov ecx, dword [ebp + 8]
call fcn.00409570
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x435ea9
push 0x5193b8
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
movzx ecx, byte [ebp - 0x12]
cmp ecx, 1
jne 0x435bb9
movzx edx, word [ebp - 0x16c]
cmp edx, 9
jne 0x435bb9
push str.Windows_XP_Professional_x64_Edition
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
movzx ecx, byte [ebp - 0x12]
cmp ecx, 3
jne 0x435be6
push 0x5193e8
mov ecx, dword [ebp + 8]
call fcn.00409570
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x435ea9
jmp case.0x435a1f.3
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 3
ja case.default.0x435c0a
mov ecx, dword [ebp - 0x140]
jmp dword [ecx*4 + 0x435ee0]
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x435c40
push 0x5193fc
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
push 0x51940c
mov ecx, dword [ebp + 8]
call fcn.00409570
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x435ea9
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x435c98
push 0x519420
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
push 0x51942c
mov ecx, dword [ebp + 8]
call fcn.00409570
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x435ea9
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x435cf0
push 0x519444
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
push 0x519450
mov ecx, dword [ebp + 8]
call fcn.00409570
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x435ea9
movzx edx, byte [ebp - 0x12]
cmp edx, 1
jne 0x435d45
push 0x519464
mov ecx, dword [ebp + 8]
call fcn.00409570
mov eax, dword [ebp - 0x130]
or eax, 1
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 8]
jmp 0x435ea9
push 0x519470
mov ecx, dword [ebp + 8]
call fcn.00409570
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x435ea9
jmp case.0x435a1f.3
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x148], edx
cmp dword [ebp - 0x148], 0
je 0x435d82
jmp case.0x435a1f.3
movzx eax, byte [ebp - 0x12]
cmp eax, 1
jne 0x435db1
push 0x519488
mov ecx, dword [ebp + 8]
call fcn.00409570
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov eax, dword [ebp + 8]
jmp 0x435ea9
push str.Windows_Server_2016_Techical_Preview
mov ecx, dword [ebp + 8]
call fcn.00409570
mov edx, dword [ebp - 0x130]
or edx, 1
mov dword [ebp - 0x130], edx
mov eax, dword [ebp + 8]
jmp 0x435ea9
push 1
push 3
lea ecx, [ebp - 0x21c]
call fcn.00403980
mov dword [ebp - 4], 0
lea eax, [ebp - 0x21c]
test eax, eax
je 0x435e06
lea ecx, [ebp - 0x21c]
add ecx, 0x10
mov dword [ebp - 0x144], ecx
jmp 0x435e10
mov dword [ebp - 0x144], 0
push str.Windows_NT
mov edx, dword [ebp - 0x144]
push edx
call fcn.0040df80
add esp, 8
push 0x5194ec
mov eax, dword [ebp - 0x128]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00436580
push eax
call fcn.0040df80
add esp, 8
push 0x5194f0
mov ecx, dword [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x20c]
call fcn.00436580
push eax
call fcn.0040df80
add esp, 8
mov edx, dword [ebp - 0x120]
push edx
lea ecx, [ebp - 0x20c]
call fcn.00436580
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x21c]
call fcn.00438580
mov ecx, dword [ebp - 0x130]
or ecx, 1
mov dword [ebp - 0x130], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x21c]
call fcn.004021f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4bd0
mov esp, ebp
pop ebp
ret