Function at 0x472112
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x124
mov eax, dword [0x52472c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push edi
push 0x118
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004b3b00
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 0x472183
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call edi
test eax, eax
jne 0x472183
push 0x4f8814
jmp 0x472546
mov eax, dword [ebp - 0x98]
sub eax, 0
je 0x472541
dec eax
je 0x4724c8
dec eax
jne 0x472179
xor ebx, ebx
inc ebx
cmp dword [ebp - 0xa4], 6
jne 0x47231f
cmp dword [ebp - 0xa0], 3
jne 0x4721d7
cmp byte [ebp + 0x72], bl
jne 0x472179
call fcn.00456c20
test al, al
je 0x4721cd
push str.Windows_8.1_x64
jmp 0x472546
push str.Windows_8.1_x86
jmp 0x472546
cmp dword [ebp - 0xa0], 2
jne 0x472222
cmp byte [ebp + 0x72], bl
jne 0x472202
call fcn.00456c20
test al, al
je 0x4721f8
push str.Windows_8_x64
jmp 0x472546
push str.Windows_8_x86
jmp 0x472546
call fcn.00456c20
test al, al
je 0x472215
push str.Windows_Server_2012_x64
jmp 0x472546
cmp dword [ebp - 0xa4], 6
jne 0x47231f
cmp dword [ebp - 0xa0], ebx
jne 0x47229b
cmp byte [ebp + 0x72], bl
jne 0x47226a
call fcn.00456c20
test al, al
movzx eax, word [ebp + 0x6c]
je 0x472253
dec eax
je 0x472249
push str.Windows_7_x64
jmp 0x472546
push str.Windows_7_x64_Service_Pack_1
jmp 0x472546
dec eax
je 0x472260
push str.Windows_7_x86
jmp 0x472546
push str.Windows_7_x86_Service_Pack_1
jmp 0x472546
call fcn.00456c20
test al, al
je 0x47228e
movzx eax, word [ebp + 0x6c]
dec eax
je 0x472284
push str.Windows_Server_2008_R2_x64
jmp 0x472546
push str.Windows_Server_2008_R2_x64_Service_Pack_1
jmp 0x472546
cmp dword [ebp - 0xa4], 6
jne 0x47231f
cmp dword [ebp - 0xa0], 0
jne 0x472179
cmp byte [ebp + 0x72], bl
jne 0x472302
call fcn.00456c20
test al, al
movzx eax, word [ebp + 0x6c]
je 0x4722de
dec eax
je 0x4722d4
dec eax
je 0x4722ca
push str.Windows_Vista_x64
jmp 0x472546
push str.Windows_Vista_x64_Service_Pack_2
jmp 0x472546
push str.Windows_Vista_x64_Service_Pack_1
jmp 0x472546
dec eax
je 0x4722f8
dec eax
je 0x4722ee
push str.Windows_Vista_x86
jmp 0x472546
push str.Windows_Vista_x86_Service_Pack_2
jmp 0x472546
push str.Windows_Vista_x86_Service_Pack_1
jmp 0x472546
call fcn.00456c20
test al, al
je 0x472315
push str.Windows_Server_2008_x64
jmp 0x472546
push str.Windows_Server_2008_x86
jmp 0x472546
cmp dword [ebp - 0xa4], 5
jne 0x472459
cmp dword [ebp - 0xa0], 2
jne 0x4723bb
cmp byte [ebp + 0x72], bl
jne 0x472366
movzx eax, word [ebp + 0x6c]
dec eax
je 0x47235c
dec eax
je 0x472352
push str.Windows_XP_x64
jmp 0x472546
push str.Windows_XP_x64_Service_Pack_2
jmp 0x472546
push str.Windows_XP_x64_Service_Pack_1
jmp 0x472546
call fcn.00456c20
test al, al
movzx eax, word [ebp + 0x6c]
je 0x472397
dec eax
je 0x47238d
dec eax
je 0x472383
push str.Windows_Server_2003_x64
jmp 0x472546
push str.Windows_Server_2003_x64_Service_Pack_2
jmp 0x472546
push str.Windows_Server_2003_x64_Service_Pack_1
jmp 0x472546
dec eax
je 0x4723b1
dec eax
je 0x4723a7
push str.Windows_Server_2003_x86
jmp 0x472546
push str.Windows_Server_2003_x86_Service_Pack_2
jmp 0x472546
push str.Windows_Server_2003_x86_Service_Pack_1
jmp 0x472546
cmp dword [ebp - 0xa0], ebx
jne 0x472401
cmp dword [ebp - 0xac], 0
jne 0x4723d6
push str.Windows_XP_x86
jmp 0x472546
movzx eax, word [ebp + 0x6c]
dec eax
je 0x4723f7
dec eax
je 0x4723ed
dec eax
jne 0x4723cc
push str.Windows_XP_x86_Service_Pack_3
jmp 0x472546
push str.Windows_XP_x86_Service_Pack_2
jmp 0x472546
push str.Windows_XP_x86_Service_Pack_1
jmp 0x472546
cmp dword [ebp - 0xa0], 0
jne 0x472179
cmp dword [ebp - 0xac], 0
jne 0x472421
push str.Windows_2000
jmp 0x472546
movzx eax, word [ebp + 0x6c]
dec eax
je 0x47244f
dec eax
je 0x472445
dec eax
je 0x47243b
dec eax
jne 0x472417
push str.Windows_2000_Service_Pack_4
jmp 0x472546
push str.Windows_2000_Service_Pack_3
jmp 0x472546
push str.Windows_2000_Service_Pack_2
jmp 0x472546
push str.Windows_2000_Service_Pack_1
jmp 0x472546
cmp dword [ebp - 0xa4], 4
ja 0x472179
cmp dword [ebp - 0xac], 0
jne 0x472479
push str.Windows_NT_4.0
jmp 0x472546
movzx eax, word [ebp + 0x6c]
dec eax
je 0x4724c1
dec eax
je 0x4724b7
dec eax
je 0x4724ad
dec eax
je 0x4724a3
dec eax
je 0x472499
dec eax
jne 0x47246f
push str.Windows_NT_4.0_Service_Pack_6
jmp 0x472546
push str.Windows_NT_4.0_Service_Pack_5
jmp 0x472546
push str.Windows_NT_4.0_Service_Pack_4
jmp 0x472546
push str.Windows_NT_4.0_Service_Pack_3
jmp 0x472546
push str.Windows_NT_4.0_Service_Pack_2
jmp 0x472546
push str.Windows_NT_4.0_Service_Pack_1
jmp 0x472546
cmp dword [ebp - 0xa4], 4
jne 0x472179
cmp dword [ebp - 0xa0], 0
jne 0x472502
cmp dword [ebp - 0x9c], 0x3b6
jbe 0x4724f1
push str.Windows_95_OSR
jmp 0x472546
cmp word [ebp - 0x92], 0x43
jne 0x472541
push str.Windows_95_OSR2.5
jmp 0x472546
cmp dword [ebp - 0xa0], 0xa
jne 0x47252d
cmp word [ebp - 0x92], 0x41
je 0x472526
cmp word [ebp - 0x92], 0x42
je 0x472526
push str.Windows_98
jmp 0x472546
push str.Windows_98_SE
jmp 0x472546
cmp dword [ebp - 0xa0], 0x5a
jne 0x472179
push str.Windows_Millennium
jmp 0x472546
push str.Windows_95
push esi
call fcn.004054af
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.004b196e
add ebp, 0x78
leave
ret