Function at 0x410338
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x458090]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push edi
push 0x118
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004318c0
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 0x4103a5
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call edi
test eax, eax
jne 0x4103a5
push 0x44bcd4
jmp 0x410780
mov eax, dword [ebp - 0x98]
xor edx, edx
sub eax, edx
je 0x41077b
dec eax
mov ecx, dword [ebp - 0xa4]
je 0x4106fe
dec eax
jne 0x41039b
cmp ecx, 6
jne 0x410543
mov eax, dword [ebp - 0xa0]
cmp eax, 3
jne 0x41040f
cmp byte [ebp + 0x72], 1
jne 0x4103fd
mov eax, esi
cmp byte [0x45afd1], dl
je 0x4103f3
push str.Windows_8.1_x64
jmp 0x410782
push str.Windows_8.1_x86
jmp 0x410782
cmp byte [0x45afd1], dl
je 0x41039b
push str.Windows_Server_2012_R2_x64
jmp 0x410780
cmp eax, 2
jne 0x41044e
cmp byte [ebp + 0x72], 1
jne 0x410438
mov eax, esi
cmp byte [0x45afd1], dl
je 0x41042e
push str.Windows_8_x64
jmp 0x410782
push str.Windows_8_x86
jmp 0x410782
cmp byte [0x45afd1], dl
je 0x41039b
push str.Windows_Server_2012_x64
jmp 0x410780
cmp eax, 1
jne 0x4104bf
cmp byte [ebp + 0x72], al
jne 0x410496
movzx eax, word [ebp + 0x6c]
cmp byte [0x45afd1], dl
je 0x41047d
dec eax
mov eax, esi
je 0x410473
push str.Windows_7_x64
jmp 0x410782
push str.Windows_7_x64_Service_Pack_1
jmp 0x410782
dec eax
mov eax, esi
je 0x41048c
push str.Windows_7_x86
jmp 0x410782
push str.Windows_7_x86_Service_Pack_1
jmp 0x410782
cmp byte [0x45afd1], dl
je 0x41039b
movzx eax, word [ebp + 0x6c]
dec eax
mov eax, esi
je 0x4104b5
push str.Windows_Server_2008_R2_x64
jmp 0x410782
push str.Windows_Server_2008_R2_x64_Service_Pack_1
jmp 0x410782
cmp eax, edx
jne 0x41039b
cmp byte [ebp + 0x72], 1
jne 0x410525
movzx eax, word [ebp + 0x6c]
cmp byte [0x45afd1], dl
je 0x4104ff
dec eax
je 0x4104f5
dec eax
mov eax, esi
je 0x4104eb
push str.Windows_Vista_x64
jmp 0x410782
push str.Windows_Vista_x64_Service_Pack_2
jmp 0x410782
push str.Windows_Vista_x64_Service_Pack_1
jmp 0x410780
dec eax
je 0x41051b
dec eax
mov eax, esi
je 0x410511
push str.Windows_Vista_x86
jmp 0x410782
push str.Windows_Vista_x86_Service_Pack_2
jmp 0x410782
push str.Windows_Vista_x86_Service_Pack_1
jmp 0x410780
mov eax, esi
cmp byte [0x45afd1], dl
je 0x410539
push str.Windows_Server_2008_x64
jmp 0x410782
push str.Windows_Server_2008_x86
jmp 0x410782
cmp ecx, 5
jne 0x410689
cmp dword [ebp - 0xa0], 2
jne 0x4105dd
cmp byte [ebp + 0x72], 1
movzx eax, word [ebp + 0x6c]
jne 0x410589
dec eax
je 0x41057f
dec eax
mov eax, esi
je 0x410575
push str.Windows_XP_x64
jmp 0x410782
push str.Windows_XP_x64_Service_Pack_2
jmp 0x410782
push str.Windows_XP_x64_Service_Pack_1
jmp 0x410780
cmp byte [0x45afd1], dl
je 0x4105b7
dec eax
je 0x4105ad
dec eax
mov eax, esi
je 0x4105a3
push str.Windows_Server_2003_x64
jmp 0x410782
push str.Windows_Server_2003_x64_Service_Pack_2
jmp 0x410782
push str.Windows_Server_2003_x64_Service_Pack_1
jmp 0x410780
dec eax
je 0x4105d3
dec eax
mov eax, esi
je 0x4105c9
push str.Windows_Server_2003_x86
jmp 0x410782
push str.Windows_Server_2003_x86_Service_Pack_2
jmp 0x410782
push str.Windows_Server_2003_x86_Service_Pack_1
jmp 0x410780
cmp dword [ebp - 0xa0], 1
jne 0x41062b
cmp ebx, edx
jne 0x4105f4
push str.Windows_XP_x86
jmp 0x410780
movzx eax, word [ebp + 0x6c]
dec eax
je 0x410621
dec eax
je 0x410617
dec eax
mov eax, esi
je 0x41060d
push str.Windows_XP_x86
jmp 0x410782
push str.Windows_XP_x86_Service_Pack_3
jmp 0x410782
push str.Windows_XP_x86_Service_Pack_2
jmp 0x410780
push str.Windows_XP_x86_Service_Pack_1
jmp 0x410780
cmp dword [ebp - 0xa0], edx
jne 0x41039b
cmp ebx, edx
jne 0x410645
push str.Windows_2000
jmp 0x410780
movzx eax, word [ebp + 0x6c]
dec eax
je 0x41067f
dec eax
je 0x410675
dec eax
je 0x41066b
dec eax
mov eax, esi
je 0x410661
push str.Windows_2000
jmp 0x410782
push str.Windows_2000_Service_Pack_4
jmp 0x410782
push str.Windows_2000_Service_Pack_3
jmp 0x410780
push str.Windows_2000_Service_Pack_2
jmp 0x410780
push str.Windows_2000_Service_Pack_1
jmp 0x410780
cmp ecx, 4
ja 0x41039b
cmp ebx, edx
jne 0x4106a0
push str.Windows_NT_4.0
jmp 0x410780
movzx eax, word [ebp + 0x6c]
dec eax
je 0x4106f4
dec eax
je 0x4106ea
dec eax
je 0x4106e0
dec eax
je 0x4106d6
dec eax
je 0x4106cc
dec eax
mov eax, esi
je 0x4106c2
push str.Windows_NT_4.0
jmp 0x410782
push str.Windows_NT_4.0_Service_Pack_6
jmp 0x410782
push str.Windows_NT_4.0_Service_Pack_5
jmp 0x410780
push str.Windows_NT_4.0_Service_Pack_4
jmp 0x410780
push str.Windows_NT_4.0_Service_Pack_3
jmp 0x410780
push str.Windows_NT_4.0_Service_Pack_2
jmp 0x410780
push str.Windows_NT_4.0_Service_Pack_1
jmp 0x410780
cmp ecx, 4
jne 0x41039b
cmp dword [ebp - 0xa0], edx
jne 0x41073c
cmp dword [ebp - 0x9c], 0x3b6
jbe 0x410722
push str.Windows_95_OSR
jmp 0x410780
cmp word [ebp - 0x92], 0x43
mov eax, esi
jne 0x410735
push str.Windows_95_OSR2.5
jmp 0x410782
push str.Windows_95
jmp 0x410782
cmp dword [ebp - 0xa0], 0xa
jne 0x410767
cmp word [ebp - 0x92], 0x41
je 0x410760
cmp word [ebp - 0x92], 0x42
je 0x410760
push str.Windows_98
jmp 0x410780
push str.Windows_98_SE
jmp 0x410780
cmp dword [ebp - 0xa0], 0x5a
jne 0x41039b
push str.Windows_Millennium
jmp 0x410780
push str.Windows_95
mov eax, esi
call fcn.0040456b
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.0043189b
add ebp, 0x78
leave
ret