Function at 0x46ea53
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x124
mov eax, dword [0x51f714]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push edi
push 0x118
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004af810
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 0x46eac4
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call edi
test eax, eax
jne 0x46eac4
push 0x4f4404
jmp 0x46ee5c
mov eax, dword [ebp - 0x98]
sub eax, 0
je 0x46ee57
dec eax
je 0x46edde
dec eax
jne 0x46eaba
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xa4], 6
jne 0x46ec35
cmp dword [ebp - 0xa0], 2
jne 0x46eb38
cmp byte [ebp + 0x72], bl
jne 0x46eb18
call fcn.00449640
test al, al
je 0x46eb0e
push str.Windows_8_x64
jmp 0x46ee5c
push str.Windows_8_x86
jmp 0x46ee5c
call fcn.00449640
test al, al
je 0x46eb2b
push str.Windows_Server_2012_x64
jmp 0x46ee5c
cmp dword [ebp - 0xa4], 6
jne 0x46ec35
cmp dword [ebp - 0xa0], ebx
jne 0x46ebb1
cmp byte [ebp + 0x72], bl
jne 0x46eb80
call fcn.00449640
test al, al
movzx eax, word [ebp + 0x6c]
je 0x46eb69
dec eax
je 0x46eb5f
push str.Windows_7_x64
jmp 0x46ee5c
push str.Windows_7_x64_Service_Pack_1
jmp 0x46ee5c
dec eax
je 0x46eb76
push str.Windows_7_x86
jmp 0x46ee5c
push str.Windows_7_x86_Service_Pack_1
jmp 0x46ee5c
call fcn.00449640
test al, al
je 0x46eba4
movzx eax, word [ebp + 0x6c]
dec eax
je 0x46eb9a
push str.Windows_Server_2008_R2_x64
jmp 0x46ee5c
push str.Windows_Server_2008_R2_x64_Service_Pack_1
jmp 0x46ee5c
cmp dword [ebp - 0xa4], 6
jne 0x46ec35
cmp dword [ebp - 0xa0], 0
jne 0x46eaba
cmp byte [ebp + 0x72], bl
jne 0x46ec18
call fcn.00449640
test al, al
movzx eax, word [ebp + 0x6c]
je 0x46ebf4
dec eax
je 0x46ebea
dec eax
je 0x46ebe0
push str.Windows_Vista_x64
jmp 0x46ee5c
push str.Windows_Vista_x64_Service_Pack_2
jmp 0x46ee5c
push str.Windows_Vista_x64_Service_Pack_1
jmp 0x46ee5c
dec eax
je 0x46ec0e
dec eax
je 0x46ec04
push str.Windows_Vista_x86
jmp 0x46ee5c
push str.Windows_Vista_x86_Service_Pack_2
jmp 0x46ee5c
push str.Windows_Vista_x86_Service_Pack_1
jmp 0x46ee5c
call fcn.00449640
test al, al
je 0x46ec2b
push str.Windows_Server_2008_x64
jmp 0x46ee5c
push str.Windows_Server_2008_x86
jmp 0x46ee5c
cmp dword [ebp - 0xa4], 5
jne 0x46ed6f
cmp dword [ebp - 0xa0], 2
jne 0x46ecd1
cmp byte [ebp + 0x72], bl
jne 0x46ec7c
movzx eax, word [ebp + 0x6c]
dec eax
je 0x46ec72
dec eax
je 0x46ec68
push str.Windows_XP_x64
jmp 0x46ee5c
push str.Windows_XP_x64_Service_Pack_2
jmp 0x46ee5c
push str.Windows_XP_x64_Service_Pack_1
jmp 0x46ee5c
call fcn.00449640
test al, al
movzx eax, word [ebp + 0x6c]
je 0x46ecad
dec eax
je 0x46eca3
dec eax
je 0x46ec99
push str.Windows_Server_2003_x64
jmp 0x46ee5c
push str.Windows_Server_2003_x64_Service_Pack_2
jmp 0x46ee5c
push str.Windows_Server_2003_x64_Service_Pack_1
jmp 0x46ee5c
dec eax
je 0x46ecc7
dec eax
je 0x46ecbd
push str.Windows_Server_2003_x86
jmp 0x46ee5c
push str.Windows_Server_2003_x86_Service_Pack_2
jmp 0x46ee5c
push str.Windows_Server_2003_x86_Service_Pack_1
jmp 0x46ee5c
cmp dword [ebp - 0xa0], ebx
jne 0x46ed17
cmp dword [ebp - 0xac], 0
jne 0x46ecec
push str.Windows_XP_x86
jmp 0x46ee5c
movzx eax, word [ebp + 0x6c]
dec eax
je 0x46ed0d
dec eax
je 0x46ed03
dec eax
jne 0x46ece2
push str.Windows_XP_x86_Service_Pack_3
jmp 0x46ee5c
push str.Windows_XP_x86_Service_Pack_2
jmp 0x46ee5c
push str.Windows_XP_x86_Service_Pack_1
jmp 0x46ee5c
cmp dword [ebp - 0xa0], 0
jne 0x46eaba
cmp dword [ebp - 0xac], 0
jne 0x46ed37
push str.Windows_2000
jmp 0x46ee5c
movzx eax, word [ebp + 0x6c]
dec eax
je 0x46ed65
dec eax
je 0x46ed5b
dec eax
je 0x46ed51
dec eax
jne 0x46ed2d
push str.Windows_2000_Service_Pack_4
jmp 0x46ee5c
push str.Windows_2000_Service_Pack_3
jmp 0x46ee5c
push str.Windows_2000_Service_Pack_2
jmp 0x46ee5c
push str.Windows_2000_Service_Pack_1
jmp 0x46ee5c
cmp dword [ebp - 0xa4], 4
ja 0x46eaba
cmp dword [ebp - 0xac], 0
jne 0x46ed8f
push str.Windows_NT_4.0
jmp 0x46ee5c
movzx eax, word [ebp + 0x6c]
dec eax
je 0x46edd7
dec eax
je 0x46edcd
dec eax
je 0x46edc3
dec eax
je 0x46edb9
dec eax
je 0x46edaf
dec eax
jne 0x46ed85
push str.Windows_NT_4.0_Service_Pack_6
jmp 0x46ee5c
push str.Windows_NT_4.0_Service_Pack_5
jmp 0x46ee5c
push str.Windows_NT_4.0_Service_Pack_4
jmp 0x46ee5c
push str.Windows_NT_4.0_Service_Pack_3
jmp 0x46ee5c
push str.Windows_NT_4.0_Service_Pack_2
jmp 0x46ee5c
push str.Windows_NT_4.0_Service_Pack_1
jmp 0x46ee5c
cmp dword [ebp - 0xa4], 4
jne 0x46eaba
cmp dword [ebp - 0xa0], 0
jne 0x46ee18
cmp dword [ebp - 0x9c], 0x3b6
jbe 0x46ee07
push str.Windows_95_OSR
jmp 0x46ee5c
cmp word [ebp - 0x92], 0x43
jne 0x46ee57
push str.Windows_95_OSR2.5
jmp 0x46ee5c
cmp dword [ebp - 0xa0], 0xa
jne 0x46ee43
cmp word [ebp - 0x92], 0x41
je 0x46ee3c
cmp word [ebp - 0x92], 0x42
je 0x46ee3c
push str.Windows_98
jmp 0x46ee5c
push str.Windows_98_SE
jmp 0x46ee5c
cmp dword [ebp - 0xa0], 0x5a
jne 0x46eaba
push str.Windows_Millennium
jmp 0x46ee5c
push str.Windows_95
push esi
call fcn.004046e4
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.004ad67b
add ebp, 0x78
leave
ret