Function at 0x45fdea
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x124
mov eax, dword [0x501344]
xor eax, ebp
mov dword [ebp + 0x74], eax
push edi
push 0x118
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.0049cb00
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x11c
call edi
mov dword [ebp - 0xac], eax
test eax, eax
jne 0x45fe5a
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call edi
test eax, eax
jne 0x45fe5a
push 0x4dad6c
jmp 0x4601a9
mov eax, dword [ebp - 0x98]
sub eax, 0
je 0x4601a4
dec eax
je 0x46012b
dec eax
jne 0x45fe50
cmp dword [ebp - 0xa4], 6
jne 0x45ff80
cmp dword [ebp - 0xa0], 1
jne 0x45fefb
cmp byte [ebp + 0x72], 1
jne 0x45feca
call fcn.0043ec20
test al, al
movzx eax, word [ebp + 0x6c]
je 0x45feb3
dec eax
je 0x45fea9
push str.Windows_7_x64
jmp 0x4601a9
push str.Windows_7_x64_Service_Pack_1
jmp 0x4601a9
dec eax
je 0x45fec0
push str.Windows_7_x86
jmp 0x4601a9
push str.Windows_7_x86_Service_Pack_1
jmp 0x4601a9
call fcn.0043ec20
test al, al
je 0x45feee
movzx eax, word [ebp + 0x6c]
dec eax
je 0x45fee4
push str.Windows_Server_2008_R2_x64
jmp 0x4601a9
push str.Windows_Server_2008_R2_x64_Service_Pack_1
jmp 0x4601a9
cmp dword [ebp - 0xa4], 6
jne 0x45ff80
cmp dword [ebp - 0xa0], 0
jne 0x45fe50
cmp byte [ebp + 0x72], 1
jne 0x45ff63
call fcn.0043ec20
test al, al
movzx eax, word [ebp + 0x6c]
je 0x45ff3f
dec eax
je 0x45ff35
dec eax
je 0x45ff2b
push str.Windows_Vista_x64
jmp 0x4601a9
push str.Windows_Vista_x64_Service_Pack_2
jmp 0x4601a9
push str.Windows_Vista_x64_Service_Pack_1
jmp 0x4601a9
dec eax
je 0x45ff59
dec eax
je 0x45ff4f
push str.Windows_Vista_x86
jmp 0x4601a9
push str.Windows_Vista_x86_Service_Pack_2
jmp 0x4601a9
push str.Windows_Vista_x86_Service_Pack_1
jmp 0x4601a9
call fcn.0043ec20
test al, al
je 0x45ff76
push str.Windows_Server_2008_x64
jmp 0x4601a9
push str.Windows_Server_2008_x86
jmp 0x4601a9
cmp dword [ebp - 0xa4], 5
jne 0x4600bc
cmp dword [ebp - 0xa0], 2
jne 0x46001d
cmp byte [ebp + 0x72], 1
jne 0x45ffc8
movzx eax, word [ebp + 0x6c]
dec eax
je 0x45ffbe
dec eax
je 0x45ffb4
push str.Windows_XP_x64
jmp 0x4601a9
push str.Windows_XP_x64_Service_Pack_2
jmp 0x4601a9
push str.Windows_XP_x64_Service_Pack_1
jmp 0x4601a9
call fcn.0043ec20
test al, al
movzx eax, word [ebp + 0x6c]
je 0x45fff9
dec eax
je 0x45ffef
dec eax
je 0x45ffe5
push str.Windows_Server_2003_x64
jmp 0x4601a9
push str.Windows_Server_2003_x64_Service_Pack_2
jmp 0x4601a9
push str.Windows_Server_2003_x64_Service_Pack_1
jmp 0x4601a9
dec eax
je 0x460013
dec eax
je 0x460009
push str.Windows_Server_2003_x86
jmp 0x4601a9
push str.Windows_Server_2003_x86_Service_Pack_2
jmp 0x4601a9
push str.Windows_Server_2003_x86_Service_Pack_1
jmp 0x4601a9
cmp dword [ebp - 0xa0], 1
jne 0x460064
cmp dword [ebp - 0xac], 0
jne 0x460039
push str.Windows_XP_x86
jmp 0x4601a9
movzx eax, word [ebp + 0x6c]
dec eax
je 0x46005a
dec eax
je 0x460050
dec eax
jne 0x46002f
push str.Windows_XP_x86_Service_Pack_3
jmp 0x4601a9
push str.Windows_XP_x86_Service_Pack_2
jmp 0x4601a9
push str.Windows_XP_x86_Service_Pack_1
jmp 0x4601a9
cmp dword [ebp - 0xa0], 0
jne 0x45fe50
cmp dword [ebp - 0xac], 0
jne 0x460084
push str.Windows_2000
jmp 0x4601a9
movzx eax, word [ebp + 0x6c]
dec eax
je 0x4600b2
dec eax
je 0x4600a8
dec eax
je 0x46009e
dec eax
jne 0x46007a
push str.Windows_2000_Service_Pack_4
jmp 0x4601a9
push str.Windows_2000_Service_Pack_3
jmp 0x4601a9
push str.Windows_2000_Service_Pack_2
jmp 0x4601a9
push str.Windows_2000_Service_Pack_1
jmp 0x4601a9
cmp dword [ebp - 0xa4], 4
ja 0x45fe50
cmp dword [ebp - 0xac], 0
jne 0x4600dc
push str.Windows_NT_4.0
jmp 0x4601a9
movzx eax, word [ebp + 0x6c]
dec eax
je 0x460124
dec eax
je 0x46011a
dec eax
je 0x460110
dec eax
je 0x460106
dec eax
je 0x4600fc
dec eax
jne 0x4600d2
push str.Windows_NT_4.0_Service_Pack_6
jmp 0x4601a9
push str.Windows_NT_4.0_Service_Pack_5
jmp 0x4601a9
push str.Windows_NT_4.0_Service_Pack_4
jmp 0x4601a9
push str.Windows_NT_4.0_Service_Pack_3
jmp 0x4601a9
push str.Windows_NT_4.0_Service_Pack_2
jmp 0x4601a9
push str.Windows_NT_4.0_Service_Pack_1
jmp 0x4601a9
cmp dword [ebp - 0xa4], 4
jne 0x45fe50
cmp dword [ebp - 0xa0], 0
jne 0x460165
cmp dword [ebp - 0x9c], 0x3b6
jbe 0x460154
push str.Windows_95_OSR
jmp 0x4601a9
cmp word [ebp - 0x92], 0x43
jne 0x4601a4
push str.Windows_95_OSR2.5
jmp 0x4601a9
cmp dword [ebp - 0xa0], 0xa
jne 0x460190
cmp word [ebp - 0x92], 0x41
je 0x460189
cmp word [ebp - 0x92], 0x42
je 0x460189
push str.Windows_98
jmp 0x4601a9
push str.Windows_98_SE
jmp 0x4601a9
cmp dword [ebp - 0xa0], 0x5a
jne 0x45fe50
push str.Windows_Millennium
jmp 0x4601a9
push str.Windows_95
push esi
call fcn.00405d14
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
mov eax, esi
pop edi
call fcn.0049c07b
add ebp, 0x78
leave
ret