Function at 0x410263
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x457090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push edi
push 0x118
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.00431420
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 ebx, eax
test ebx, ebx
jne 0x4102d0
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call edi
test eax, eax
jne 0x4102d0
push 0x44accc
jmp 0x4106ab
mov eax, dword [ebp - 0x98]
xor edx, edx
sub eax, edx
je 0x4106a6
dec eax
mov ecx, dword [ebp - 0xa4]
je 0x410629
dec eax
jne 0x4102c6
cmp ecx, 6
jne 0x41046e
mov eax, dword [ebp - 0xa0]
cmp eax, 3
jne 0x41033a
cmp byte [ebp + 0x72], 1
jne 0x410328
mov eax, esi
cmp byte [0x459f91], dl
je 0x41031e
push str.Windows_8.1_x64
jmp 0x4106ad
push str.Windows_8.1_x86
jmp 0x4106ad
cmp byte [0x459f91], dl
je 0x4102c6
push str.Windows_Server_2012_R2_x64
jmp 0x4106ab
cmp eax, 2
jne 0x410379
cmp byte [ebp + 0x72], 1
jne 0x410363
mov eax, esi
cmp byte [0x459f91], dl
je 0x410359
push str.Windows_8_x64
jmp 0x4106ad
push str.Windows_8_x86
jmp 0x4106ad
cmp byte [0x459f91], dl
je 0x4102c6
push str.Windows_Server_2012_x64
jmp 0x4106ab
cmp eax, 1
jne 0x4103ea
cmp byte [ebp + 0x72], al
jne 0x4103c1
movzx eax, word [ebp + 0x6c]
cmp byte [0x459f91], dl
je 0x4103a8
dec eax
mov eax, esi
je 0x41039e
push str.Windows_7_x64
jmp 0x4106ad
push str.Windows_7_x64_Service_Pack_1
jmp 0x4106ad
dec eax
mov eax, esi
je 0x4103b7
push str.Windows_7_x86
jmp 0x4106ad
push str.Windows_7_x86_Service_Pack_1
jmp 0x4106ad
cmp byte [0x459f91], dl
je 0x4102c6
movzx eax, word [ebp + 0x6c]
dec eax
mov eax, esi
je 0x4103e0
push str.Windows_Server_2008_R2_x64
jmp 0x4106ad
push str.Windows_Server_2008_R2_x64_Service_Pack_1
jmp 0x4106ad
cmp eax, edx
jne 0x4102c6
cmp byte [ebp + 0x72], 1
jne 0x410450
movzx eax, word [ebp + 0x6c]
cmp byte [0x459f91], dl
je 0x41042a
dec eax
je 0x410420
dec eax
mov eax, esi
je 0x410416
push str.Windows_Vista_x64
jmp 0x4106ad
push str.Windows_Vista_x64_Service_Pack_2
jmp 0x4106ad
push str.Windows_Vista_x64_Service_Pack_1
jmp 0x4106ab
dec eax
je 0x410446
dec eax
mov eax, esi
je 0x41043c
push str.Windows_Vista_x86
jmp 0x4106ad
push str.Windows_Vista_x86_Service_Pack_2
jmp 0x4106ad
push str.Windows_Vista_x86_Service_Pack_1
jmp 0x4106ab
mov eax, esi
cmp byte [0x459f91], dl
je 0x410464
push str.Windows_Server_2008_x64
jmp 0x4106ad
push str.Windows_Server_2008_x86
jmp 0x4106ad
cmp ecx, 5
jne 0x4105b4
cmp dword [ebp - 0xa0], 2
jne 0x410508
cmp byte [ebp + 0x72], 1
movzx eax, word [ebp + 0x6c]
jne 0x4104b4
dec eax
je 0x4104aa
dec eax
mov eax, esi
je 0x4104a0
push str.Windows_XP_x64
jmp 0x4106ad
push str.Windows_XP_x64_Service_Pack_2
jmp 0x4106ad
push str.Windows_XP_x64_Service_Pack_1
jmp 0x4106ab
cmp byte [0x459f91], dl
je 0x4104e2
dec eax
je 0x4104d8
dec eax
mov eax, esi
je 0x4104ce
push str.Windows_Server_2003_x64
jmp 0x4106ad
push str.Windows_Server_2003_x64_Service_Pack_2
jmp 0x4106ad
push str.Windows_Server_2003_x64_Service_Pack_1
jmp 0x4106ab
dec eax
je 0x4104fe
dec eax
mov eax, esi
je 0x4104f4
push str.Windows_Server_2003_x86
jmp 0x4106ad
push str.Windows_Server_2003_x86_Service_Pack_2
jmp 0x4106ad
push str.Windows_Server_2003_x86_Service_Pack_1
jmp 0x4106ab
cmp dword [ebp - 0xa0], 1
jne 0x410556
cmp ebx, edx
jne 0x41051f
push str.Windows_XP_x86
jmp 0x4106ab
movzx eax, word [ebp + 0x6c]
dec eax
je 0x41054c
dec eax
je 0x410542
dec eax
mov eax, esi
je 0x410538
push str.Windows_XP_x86
jmp 0x4106ad
push str.Windows_XP_x86_Service_Pack_3
jmp 0x4106ad
push str.Windows_XP_x86_Service_Pack_2
jmp 0x4106ab
push str.Windows_XP_x86_Service_Pack_1
jmp 0x4106ab
cmp dword [ebp - 0xa0], edx
jne 0x4102c6
cmp ebx, edx
jne 0x410570
push str.Windows_2000
jmp 0x4106ab
movzx eax, word [ebp + 0x6c]
dec eax
je 0x4105aa
dec eax
je 0x4105a0
dec eax
je 0x410596
dec eax
mov eax, esi
je 0x41058c
push str.Windows_2000
jmp 0x4106ad
push str.Windows_2000_Service_Pack_4
jmp 0x4106ad
push str.Windows_2000_Service_Pack_3
jmp 0x4106ab
push str.Windows_2000_Service_Pack_2
jmp 0x4106ab
push str.Windows_2000_Service_Pack_1
jmp 0x4106ab
cmp ecx, 4
ja 0x4102c6
cmp ebx, edx
jne 0x4105cb
push str.Windows_NT_4.0
jmp 0x4106ab
movzx eax, word [ebp + 0x6c]
dec eax
je 0x41061f
dec eax
je 0x410615
dec eax
je 0x41060b
dec eax
je 0x410601
dec eax
je 0x4105f7
dec eax
mov eax, esi
je 0x4105ed
push str.Windows_NT_4.0
jmp 0x4106ad
push str.Windows_NT_4.0_Service_Pack_6
jmp 0x4106ad
push str.Windows_NT_4.0_Service_Pack_5
jmp 0x4106ab
push str.Windows_NT_4.0_Service_Pack_4
jmp 0x4106ab
push str.Windows_NT_4.0_Service_Pack_3
jmp 0x4106ab
push str.Windows_NT_4.0_Service_Pack_2
jmp 0x4106ab
push str.Windows_NT_4.0_Service_Pack_1
jmp 0x4106ab
cmp ecx, 4
jne 0x4102c6
cmp dword [ebp - 0xa0], edx
jne 0x410667
cmp dword [ebp - 0x9c], 0x3b6
jbe 0x41064d
push str.Windows_95_OSR
jmp 0x4106ab
cmp word [ebp - 0x92], 0x43
mov eax, esi
jne 0x410660
push str.Windows_95_OSR2.5
jmp 0x4106ad
push str.Windows_95
jmp 0x4106ad
cmp dword [ebp - 0xa0], 0xa
jne 0x410692
cmp word [ebp - 0x92], 0x41
je 0x41068b
cmp word [ebp - 0x92], 0x42
je 0x41068b
push str.Windows_98
jmp 0x4106ab
push str.Windows_98_SE
jmp 0x4106ab
cmp dword [ebp - 0xa0], 0x5a
jne 0x4102c6
push str.Windows_Millennium
jmp 0x4106ab
push str.Windows_95
mov eax, esi
call fcn.00404558
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.004313fb
add ebp, 0x78
leave
ret