Function at 0x47c52f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x120
mov eax, dword [0x541770]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
push edi
push 0x118
lea eax, [ebp - 0xa4]
push 0
push eax
call fcn.004c6270
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 0x47c59c
lea eax, [ebp - 0xa8]
push eax
mov dword [ebp - 0xa8], 0x114
call edi
test eax, eax
jne 0x47c59c
push 0x5110ec
jmp 0x47c92d
mov eax, dword [ebp - 0x98]
xor edx, edx
sub eax, edx
je 0x47c928
dec eax
mov ecx, dword [ebp - 0xa4]
je 0x47c8b4
dec eax
jne 0x47c592
cmp ecx, 6
jne 0x47c72a
mov eax, dword [ebp - 0xa0]
cmp eax, 3
jne 0x47c604
cmp byte [ebp + 0x72], 1
jne 0x47c5f2
cmp byte [0x5456f9], dl
je 0x47c5e8
push str.Windows_8.1_x64
jmp 0x47c92d
push str.Windows_8.1_x86
jmp 0x47c92d
cmp byte [0x5456f9], dl
je 0x47c592
push str.Windows_Server_2012_R2_x64
jmp 0x47c92d
cmp eax, 2
jne 0x47c641
cmp byte [ebp + 0x72], 1
jne 0x47c62b
cmp byte [0x5456f9], dl
je 0x47c621
push str.Windows_8_x64
jmp 0x47c92d
push str.Windows_8_x86
jmp 0x47c92d
cmp byte [0x5456f9], dl
je 0x47c592
push str.Windows_Server_2012_x64
jmp 0x47c92d
cmp eax, 1
jne 0x47c6ac
cmp byte [ebp + 0x72], al
jne 0x47c685
movzx eax, word [ebp + 0x6c]
cmp byte [0x5456f9], dl
je 0x47c66e
dec eax
je 0x47c664
push str.Windows_7_x64
jmp 0x47c92d
push str.Windows_7_x64_Service_Pack_1
jmp 0x47c92d
dec eax
je 0x47c67b
push str.Windows_7_x86
jmp 0x47c92d
push str.Windows_7_x86_Service_Pack_1
jmp 0x47c92d
cmp byte [0x5456f9], dl
je 0x47c592
movzx eax, word [ebp + 0x6c]
dec eax
je 0x47c6a2
push str.Windows_Server_2008_R2_x64
jmp 0x47c92d
push str.Windows_Server_2008_R2_x64_Service_Pack_1
jmp 0x47c92d
cmp eax, edx
jne 0x47c592
cmp byte [ebp + 0x72], 1
jne 0x47c70e
movzx eax, word [ebp + 0x6c]
cmp byte [0x5456f9], dl
je 0x47c6ea
dec eax
je 0x47c6e0
dec eax
je 0x47c6d6
push str.Windows_Vista_x64
jmp 0x47c92d
push str.Windows_Vista_x64_Service_Pack_2
jmp 0x47c92d
push str.Windows_Vista_x64_Service_Pack_1
jmp 0x47c92d
dec eax
je 0x47c704
dec eax
je 0x47c6fa
push str.Windows_Vista_x86
jmp 0x47c92d
push str.Windows_Vista_x86_Service_Pack_2
jmp 0x47c92d
push str.Windows_Vista_x86_Service_Pack_1
jmp 0x47c92d
cmp byte [0x5456f9], dl
je 0x47c720
push str.Windows_Server_2008_x64
jmp 0x47c92d
push str.Windows_Server_2008_x86
jmp 0x47c92d
cmp ecx, 5
jne 0x47c84e
cmp dword [ebp - 0xa0], 2
jne 0x47c7ba
cmp byte [ebp + 0x72], 1
movzx eax, word [ebp + 0x6c]
jne 0x47c76a
dec eax
je 0x47c760
dec eax
je 0x47c756
push str.Windows_XP_x64
jmp 0x47c92d
push str.Windows_XP_x64_Service_Pack_2
jmp 0x47c92d
push str.Windows_XP_x64_Service_Pack_1
jmp 0x47c92d
cmp byte [0x5456f9], dl
je 0x47c796
dec eax
je 0x47c78c
dec eax
je 0x47c782
push str.Windows_Server_2003_x64
jmp 0x47c92d
push str.Windows_Server_2003_x64_Service_Pack_2
jmp 0x47c92d
push str.Windows_Server_2003_x64_Service_Pack_1
jmp 0x47c92d
dec eax
je 0x47c7b0
dec eax
je 0x47c7a6
push str.Windows_Server_2003_x86
jmp 0x47c92d
push str.Windows_Server_2003_x86_Service_Pack_2
jmp 0x47c92d
push str.Windows_Server_2003_x86_Service_Pack_1
jmp 0x47c92d
cmp dword [ebp - 0xa0], 1
jne 0x47c7fc
cmp ebx, edx
jne 0x47c7d1
push str.Windows_XP_x86
jmp 0x47c92d
movzx eax, word [ebp + 0x6c]
dec eax
je 0x47c7f2
dec eax
je 0x47c7e8
dec eax
jne 0x47c7c7
push str.Windows_XP_x86_Service_Pack_3
jmp 0x47c92d
push str.Windows_XP_x86_Service_Pack_2
jmp 0x47c92d
push str.Windows_XP_x86_Service_Pack_1
jmp 0x47c92d
cmp dword [ebp - 0xa0], edx
jne 0x47c592
cmp ebx, edx
jne 0x47c816
push str.Windows_2000
jmp 0x47c92d
movzx eax, word [ebp + 0x6c]
dec eax
je 0x47c844
dec eax
je 0x47c83a
dec eax
je 0x47c830
dec eax
jne 0x47c80c
push str.Windows_2000_Service_Pack_4
jmp 0x47c92d
push str.Windows_2000_Service_Pack_3
jmp 0x47c92d
push str.Windows_2000_Service_Pack_2
jmp 0x47c92d
push str.Windows_2000_Service_Pack_1
jmp 0x47c92d
cmp ecx, 4
ja 0x47c592
cmp ebx, edx
jne 0x47c865
push str.Windows_NT_4.0
jmp 0x47c92d
movzx eax, word [ebp + 0x6c]
dec eax
je 0x47c8ad
dec eax
je 0x47c8a3
dec eax
je 0x47c899
dec eax
je 0x47c88f
dec eax
je 0x47c885
dec eax
jne 0x47c85b
push str.Windows_NT_4.0_Service_Pack_6
jmp 0x47c92d
push str.Windows_NT_4.0_Service_Pack_5
jmp 0x47c92d
push str.Windows_NT_4.0_Service_Pack_4
jmp 0x47c92d
push str.Windows_NT_4.0_Service_Pack_3
jmp 0x47c92d
push str.Windows_NT_4.0_Service_Pack_2
jmp 0x47c92d
push str.Windows_NT_4.0_Service_Pack_1
jmp 0x47c92d
cmp ecx, 4
jne 0x47c592
cmp dword [ebp - 0xa0], edx
jne 0x47c8e9
cmp dword [ebp - 0x9c], 0x3b6
jbe 0x47c8d8
push str.Windows_95_OSR
jmp 0x47c92d
cmp word [ebp - 0x92], 0x43
jne 0x47c928
push str.Windows_95_OSR2.5
jmp 0x47c92d
cmp dword [ebp - 0xa0], 0xa
jne 0x47c914
cmp word [ebp - 0x92], 0x41
je 0x47c90d
cmp word [ebp - 0x92], 0x42
je 0x47c90d
push str.Windows_98
jmp 0x47c92d
push str.Windows_98_SE
jmp 0x47c92d
cmp dword [ebp - 0xa0], 0x5a
jne 0x47c592
push str.Windows_Millennium
jmp 0x47c92d
push str.Windows_95
push esi
call fcn.00405d46
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
mov eax, esi
pop ebx
call fcn.004c625d
add ebp, 0x78
leave
ret