Function at 0x40fda6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x124
mov eax, dword [0x455090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push edi
push 0x118
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004302b0
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 0x40fe17
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call edi
test eax, eax
jne 0x40fe17
push 0x449c18
jmp 0x410220
mov eax, dword [ebp - 0x98]
sub eax, 0
je 0x41021b
dec eax
je 0x410199
dec eax
jne 0x40fe0d
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xa4], 6
jne 0x40ffc3
cmp dword [ebp - 0xa0], 3
jne 0x40fe6d
cmp byte [ebp + 0x72], bl
jne 0x40fe0d
call fcn.00424289
test al, al
mov eax, esi
je 0x40fe63
push str.Windows_8.1_x64
jmp 0x410222
push str.Windows_8.1_x86
jmp 0x410222
cmp dword [ebp - 0xa0], 2
jne 0x40feba
cmp byte [ebp + 0x72], bl
jne 0x40fe9a
call fcn.00424289
test al, al
mov eax, esi
je 0x40fe90
push str.Windows_8_x64
jmp 0x410222
push str.Windows_8_x86
jmp 0x410222
call fcn.00424289
test al, al
je 0x40fead
push str.Windows_Server_2012_x64
jmp 0x410220
cmp dword [ebp - 0xa4], 6
jne 0x40ffc3
cmp dword [ebp - 0xa0], ebx
jne 0x40ff39
cmp byte [ebp + 0x72], bl
jne 0x40ff06
call fcn.00424289
test al, al
movzx eax, word [ebp + 0x6c]
je 0x40feed
dec eax
mov eax, esi
je 0x40fee3
push str.Windows_7_x64
jmp 0x410222
push str.Windows_7_x64_Service_Pack_1
jmp 0x410222
dec eax
mov eax, esi
je 0x40fefc
push str.Windows_7_x86
jmp 0x410222
push str.Windows_7_x86_Service_Pack_1
jmp 0x410222
call fcn.00424289
test al, al
je 0x40ff2c
movzx eax, word [ebp + 0x6c]
dec eax
mov eax, esi
je 0x40ff22
push str.Windows_Server_2008_R2_x64
jmp 0x410222
push str.Windows_Server_2008_R2_x64_Service_Pack_1
jmp 0x410222
cmp dword [ebp - 0xa4], 6
jne 0x40ffc3
cmp dword [ebp - 0xa0], 0
jne 0x40fe0d
cmp byte [ebp + 0x72], bl
jne 0x40ffa4
call fcn.00424289
test al, al
movzx eax, word [ebp + 0x6c]
je 0x40ff7e
dec eax
je 0x40ff74
dec eax
mov eax, esi
je 0x40ff6a
push str.Windows_Vista_x64
jmp 0x410222
push str.Windows_Vista_x64_Service_Pack_2
jmp 0x410222
push str.Windows_Vista_x64_Service_Pack_1
jmp 0x410220
dec eax
je 0x40ff9a
dec eax
mov eax, esi
je 0x40ff90
push str.Windows_Vista_x86
jmp 0x410222
push str.Windows_Vista_x86_Service_Pack_2
jmp 0x410222
push str.Windows_Vista_x86_Service_Pack_1
jmp 0x410220
call fcn.00424289
test al, al
mov eax, esi
je 0x40ffb9
push str.Windows_Server_2008_x64
jmp 0x410222
push str.Windows_Server_2008_x86
jmp 0x410222
cmp dword [ebp - 0xa4], 5
jne 0x41011b
cmp dword [ebp - 0xa0], 2
jne 0x410065
cmp byte [ebp + 0x72], bl
jne 0x41000c
movzx eax, word [ebp + 0x6c]
dec eax
je 0x410002
dec eax
mov eax, esi
je 0x40fff8
push str.Windows_XP_x64
jmp 0x410222
push str.Windows_XP_x64_Service_Pack_2
jmp 0x410222
push str.Windows_XP_x64_Service_Pack_1
jmp 0x410220
call fcn.00424289
test al, al
movzx eax, word [ebp + 0x6c]
je 0x41003f
dec eax
je 0x410035
dec eax
mov eax, esi
je 0x41002b
push str.Windows_Server_2003_x64
jmp 0x410222
push str.Windows_Server_2003_x64_Service_Pack_2
jmp 0x410222
push str.Windows_Server_2003_x64_Service_Pack_1
jmp 0x410220
dec eax
je 0x41005b
dec eax
mov eax, esi
je 0x410051
push str.Windows_Server_2003_x86
jmp 0x410222
push str.Windows_Server_2003_x86_Service_Pack_2
jmp 0x410222
push str.Windows_Server_2003_x86_Service_Pack_1
jmp 0x410220
cmp dword [ebp - 0xa0], ebx
jne 0x4100b7
cmp dword [ebp - 0xac], 0
jne 0x410080
push str.Windows_XP_x86
jmp 0x410220
movzx eax, word [ebp + 0x6c]
dec eax
je 0x4100ad
dec eax
je 0x4100a3
dec eax
mov eax, esi
je 0x410099
push str.Windows_XP_x86
jmp 0x410222
push str.Windows_XP_x86_Service_Pack_3
jmp 0x410222
push str.Windows_XP_x86_Service_Pack_2
jmp 0x410220
push str.Windows_XP_x86_Service_Pack_1
jmp 0x410220
cmp dword [ebp - 0xa0], 0
jne 0x40fe0d
cmp dword [ebp - 0xac], 0
jne 0x4100d7
push str.Windows_2000
jmp 0x410220
movzx eax, word [ebp + 0x6c]
dec eax
je 0x410111
dec eax
je 0x410107
dec eax
je 0x4100fd
dec eax
mov eax, esi
je 0x4100f3
push str.Windows_2000
jmp 0x410222
push str.Windows_2000_Service_Pack_4
jmp 0x410222
push str.Windows_2000_Service_Pack_3
jmp 0x410220
push str.Windows_2000_Service_Pack_2
jmp 0x410220
push str.Windows_2000_Service_Pack_1
jmp 0x410220
cmp dword [ebp - 0xa4], 4
ja 0x40fe0d
cmp dword [ebp - 0xac], 0
jne 0x41013b
push str.Windows_NT_4.0
jmp 0x410220
movzx eax, word [ebp + 0x6c]
dec eax
je 0x41018f
dec eax
je 0x410185
dec eax
je 0x41017b
dec eax
je 0x410171
dec eax
je 0x410167
dec eax
mov eax, esi
je 0x41015d
push str.Windows_NT_4.0
jmp 0x410222
push str.Windows_NT_4.0_Service_Pack_6
jmp 0x410222
push str.Windows_NT_4.0_Service_Pack_5
jmp 0x410220
push str.Windows_NT_4.0_Service_Pack_4
jmp 0x410220
push str.Windows_NT_4.0_Service_Pack_3
jmp 0x410220
push str.Windows_NT_4.0_Service_Pack_2
jmp 0x410220
push str.Windows_NT_4.0_Service_Pack_1
jmp 0x410220
cmp dword [ebp - 0xa4], 4
jne 0x40fe0d
cmp dword [ebp - 0xa0], 0
jne 0x4101dc
cmp dword [ebp - 0x9c], 0x3b6
jbe 0x4101c2
push str.Windows_95_OSR
jmp 0x410220
cmp word [ebp - 0x92], 0x43
mov eax, esi
jne 0x4101d5
push str.Windows_95_OSR2.5
jmp 0x410222
push str.Windows_95
jmp 0x410222
cmp dword [ebp - 0xa0], 0xa
jne 0x410207
cmp word [ebp - 0x92], 0x41
je 0x410200
cmp word [ebp - 0x92], 0x42
je 0x410200
push str.Windows_98
jmp 0x410220
push str.Windows_98_SE
jmp 0x410220
cmp dword [ebp - 0xa0], 0x5a
jne 0x40fe0d
push str.Windows_Millennium
jmp 0x410220
push str.Windows_95
mov eax, esi
call fcn.004045e3
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0043028b
add ebp, 0x78
leave
ret