Function at 0x40c5b4
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe24
push ebx
xor edx, edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40caf8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x5f8b11], 0
je 0x40c5ed
cmp dword [0x60629c], 0
jne 0x40cacc
mov byte [0x5f8b11], 1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40c66e
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040437c
mov dword [ebp - 0x1b4], 0x11c
push 0x40cb04
push 0x40cb20
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.004039d8
mov ebx, eax
test ebx, ebx
je 0x40c646
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x40c6c8
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40c6c8
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x40c6c8
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040437c
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x98]
mov ecx, 0x94
call sub.rtl250.bpl__System_Move_qqrpxvpvi
mov ecx, 0x80
lea eax, [ebp - 0x84]
lea edx, [ebp - 0x1a0]
movzx ebx, byte [eax]
mov word [edx], bx
add edx, 2
inc eax
dec ecx
jne 0x40c6bb
mov eax, dword [ebp - 0x1b0]
mov dword [0x606280], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x606284], eax
mov eax, 0x60628c
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call sub.rtl250.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x606290], dl
cmp eax, 2
sete al
mov byte [0x606292], al
cmp byte [0x606290], 0
je 0x40c727
movzx eax, word [ebp - 0x1a8]
mov dword [0x606288], eax
jmp 0x40c732
mov eax, dword [ebp - 0x1a8]
mov dword [0x606288], eax
mov byte [0x606294], 0
xor eax, eax
mov dword [0x606298], eax
cmp byte [0x606290], 0
je 0x40c7ec
mov eax, dword [0x606280]
sub eax, 4
jb 0x40c7d4
je 0x40c75b
jmp 0x40c7cd
mov eax, dword [0x606284]
sub eax, 0xa
jb 0x40c76f
je 0x40c78d
dec eax
sub eax, 0x50
jb 0x40c7bb
jmp 0x40c7c4
cmp dword [0x606288], 0x3e8
jbe 0x40c784
mov byte [0x606294], 2
jmp 0x40c7d4
mov byte [0x606294], 1
jmp 0x40c7d4
mov eax, dword [0x606288]
cmp eax, 0xa8c
jbe 0x40c7a2
mov byte [0x606294], 5
jmp 0x40c7d4
cmp eax, 0x7d0
jbe 0x40c7b2
mov byte [0x606294], 4
jmp 0x40c7d4
mov byte [0x606294], 3
jmp 0x40c7d4
mov byte [0x606294], 5
jmp 0x40c7d4
mov byte [0x606294], 6
jmp 0x40c7d4
mov byte [0x606294], 6
movzx eax, byte [0x606294]
mov byte [0x606291], al
mov byte [0x606293], 0
jmp 0x40c9df
cmp byte [0x606292], 0
je 0x40c9df
mov eax, dword [0x606280]
cmp eax, 0xa
ja case.0x40c807.7
jmp dword [eax*4 + 0x40c80e]
mov byte [0x606294], 7
jmp 0x40c932
mov byte [0x606294], 8
jmp 0x40c932
mov eax, dword [0x606284]
sub eax, 1
jb 0x40c860
je 0x40c86c
jmp 0x40c878
mov byte [0x606294], 9
jmp 0x40c932
mov byte [0x606294], 0xa
jmp 0x40c932
cmp byte [ebp - 0x9a], 1
jne 0x40c88d
mov byte [0x606294], 0xa
jmp 0x40c932
mov byte [0x606294], 0xb
jmp 0x40c932
mov eax, dword [0x606284]
sub eax, 1
jb 0x40c8ad
je 0x40c8c8
dec eax
je 0x40c8e3
dec eax
je 0x40c8fe
jmp 0x40c919
cmp byte [ebp - 0x9a], 1
jne 0x40c8bf
mov byte [0x606294], 0xc
jmp 0x40c932
mov byte [0x606294], 0xd
jmp 0x40c932
cmp byte [ebp - 0x9a], 1
jne 0x40c8da
mov byte [0x606294], 0xe
jmp 0x40c932
mov byte [0x606294], 0xf
jmp 0x40c932
cmp byte [ebp - 0x9a], 1
jne 0x40c8f5
mov byte [0x606294], 0x10
jmp 0x40c932
mov byte [0x606294], 0x11
jmp 0x40c932
cmp byte [ebp - 0x9a], 1
jne 0x40c910
mov byte [0x606294], 0x12
jmp 0x40c932
mov byte [0x606294], 0x13
jmp 0x40c932
mov byte [0x606294], 0x15
jmp 0x40c932
mov byte [0x606294], 0x14
jmp 0x40c932
mov byte [0x606294], 0x15
mov byte [0x606291], 0
movzx eax, byte [0x606294]
mov byte [0x606293], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x40c95f
movzx eax, word [ebp - 0xa0]
mov dword [0x606298], eax
jmp 0x40c99b
mov eax, dword [0x60628c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0xe
jl 0x40c99b
mov eax, dword [0x60628c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
sub eax, 0xd
push eax
mov eax, 0x60628c
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea edx, [eax + 0x1a]
mov ebx, dword [0x6039e0]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x606298], eax
push 0x40cb34
push 0x40cb5c
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.004039d8
mov ebx, eax
test ebx, ebx
je 0x40c9df
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040437c
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x606295], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x606294]
mov edx, dword [edx*4 + 0x5f8a90]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x1dc]
mov eax, 0x60629c
call sub.rtl250.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp byte [0x606292], 0
je 0x40cacc
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40ca34
mov eax, 0x60629c
mov edx, 0x40cb84
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40ca4e
mov eax, 0x60629c
mov edx, 0x40cb98
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40ca68
mov eax, 0x60629c
mov edx, 0x40cbbc
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x606294], 0xc
jae 0x40ca8b
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40ca8b
mov eax, 0x60629c
mov edx, 0x40cbdc
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x606295], 0
je 0x40caa3
mov eax, 0x60629c
mov edx, 0x40cc04
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [0x60628c], 0
je 0x40cacc
push dword [0x60629c]
push 0x40cc1c
push dword [0x60628c]
mov eax, 0x60629c
mov edx, 3
call sub.rtl250.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov edx, 0x606280
mov ecx, dword [0x40c248]
call sub.rtl250.bpl__System__CopyRecord_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40caff
lea eax, [ebp - 0x1dc]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret