Function at 0x404f00
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14c
mov eax, dword [0x46c004]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push esi
push edi
push 0x9c
lea eax, [esp + 0x14]
push 0
push eax
call fcn.004147b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [esp + 0x1c]
add esp, 0xc
mov dword [esp + 0x10], 0x9c
push eax
call esi
test eax, eax
jne 0x404f74
push 0x9c
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004147b0
add esp, 0xc
mov dword [esp + 0x10], 0x94
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x40529a
cmp dword [esp + 0x20], 2
jne 0x40529a
mov esi, dword [esp + 0x14]
cmp esi, 6
ja 0x404f97
jne 0x405008
mov edi, dword [esp + 0x18]
cmp edi, 2
jb 0x405015
push 1
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov esi, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0xc], edx
cmp esi, 9
ja 0x405008
mov ebx, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
nop word [eax + eax]
push 0x9c
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.004147b0
add esp, 0xc
mov dword [esp + 0xb0], 0x9c
lea eax, [esp + 0xb0]
mov dword [esp + 0xb4], esi
push dword [esp + 0xc]
push edi
push 2
push eax
call ebx
test eax, eax
jne 0x40504c
inc esi
cmp esi, 9
jbe 0x404fc0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp esi, 0xf
ja 0x40529a
cmp edi, 0xf
ja 0x40529a
cmp byte [esp + 0xaa], 1
mov edx, dword [esp + 0x1c]
setbe cl
shl esi, 4
or esi, edi
lea eax, [esi - 0x50]
cmp eax, 0x60
ja case.0x405045.83
movzx eax, byte [eax + 0x4052dc]
jmp dword [eax*4 + 0x4052b4]
cmp dword [esp + 0x14], esi
jae 0x40505e
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
push 1
push 1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov edi, dword [esp + 0x18]
mov esi, eax
mov dword [esp + 0xc], edx
cmp edi, 9
ja 0x4050cd
nop dword [eax + eax]
push 0x9c
lea eax, [esp + 0xb4]
push 0
push eax
call fcn.004147b0
add esp, 0xc
mov dword [esp + 0xb0], 0x9c
lea eax, [esp + 0xb0]
mov dword [esp + 0xb8], edi
push dword [esp + 0xc]
push esi
push 1
push eax
call ebx
test eax, eax
jne 0x4050c9
inc edi
cmp edi, 9
jbe 0x405080
jmp 0x405004
mov dword [esp + 0x18], edi
mov esi, dword [esp + 0x14]
jmp 0x40500c
mov ebx, 1
mov edi, str.2000
jmp 0x4051a3
mov ebx, 2
mov edi, 0x465154
jmp 0x4051a3
mov ebx, 3
mov edi, str.2003
jmp 0x4051a3
test cl, cl
mov edi, str.Vista
mov eax, str.2008
mov ebx, 4
cmove edi, eax
jmp 0x4051a3
test cl, cl
mov edi, 0x465170
mov eax, str.2008_R2
mov ebx, 5
cmove edi, eax
jmp 0x4051a3
test cl, cl
mov edi, 0x46517c
mov eax, str.2012
mov ebx, 6
cmove edi, eax
jmp 0x4051a3
test cl, cl
mov edi, 0x465188
mov eax, str.2012_R2
mov ebx, 7
cmove edi, eax
jmp 0x4051a3
test cl, cl
mov edi, 0x465194
mov eax, str.2016
mov ebx, 8
cmove edi, eax
cmp edx, 0x4e20
jb 0x4051a3
test cl, cl
mov edi, 0x4651a0
mov eax, str.2022
mov ebx, 9
cmove edi, eax
jmp 0x4051a3
cmp esi, 0x50
jb 0x40529a
mov ebx, 0xa
mov edi, str.12_or_later
cmp esi, 0x62
jne 0x4051b8
cmp edx, 0x23f0
mov eax, str.8__or_later_
cmovne eax, edi
mov edi, eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
cmp dword [esp + 0xc], 0
mov ecx, str.32_bit
mov eax, str.64_bit
cmove eax, ecx
mov cx, word [esp + 0xa6]
push eax
test cx, cx
je 0x40522d
movzx eax, cx
push eax
movzx eax, word [esp + 0xac]
push eax
push edi
push str.Windows__s_SP_u._u__s
push str.get_windows_version
push 4
push 0
call fcn.00404600
add esp, 0x20
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004129d8
mov esp, ebp
pop ebp
ret
mov cx, word [esp + 0xa8]
test cx, cx
je 0x40526c
movzx eax, cx
push eax
push edi
push str.Windows__s_SP_u__s
push str.get_windows_version
push 4
push 0
call fcn.00404600
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004129d8
mov esp, ebp
pop ebp
ret
push edi
push str.Windows__s__s
push str.get_windows_version
push 4
push 0
call fcn.00404600
add esp, 0x18
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.004129d8
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x154]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004129d8
mov esp, ebp
pop ebp
ret