Function at 0x40bcf0
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 0x40c234
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4c9b11], 0
je 0x40bd29
cmp dword [0x4d029c], 0
jne 0x40c208
mov byte [0x4c9b11], 1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40bdaa
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.00403ce8
mov dword [ebp - 0x1b4], 0x11c
push 0x40c240
push 0x40c25c
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00403508
mov ebx, eax
test ebx, ebx
je 0x40bd82
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x40be04
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40be04
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x40be04
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00403ce8
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 0x40bdf7
mov eax, dword [ebp - 0x1b0]
mov dword [0x4d0280], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x4d0284], eax
mov eax, 0x4d028c
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 [0x4d0290], dl
cmp eax, 2
sete al
mov byte [0x4d0292], al
cmp byte [0x4d0290], 0
je 0x40be63
movzx eax, word [ebp - 0x1a8]
mov dword [0x4d0288], eax
jmp 0x40be6e
mov eax, dword [ebp - 0x1a8]
mov dword [0x4d0288], eax
mov byte [0x4d0294], 0
xor eax, eax
mov dword [0x4d0298], eax
cmp byte [0x4d0290], 0
je 0x40bf28
mov eax, dword [0x4d0280]
sub eax, 4
jb 0x40bf10
je 0x40be97
jmp 0x40bf09
mov eax, dword [0x4d0284]
sub eax, 0xa
jb 0x40beab
je 0x40bec9
dec eax
sub eax, 0x50
jb 0x40bef7
jmp 0x40bf00
cmp dword [0x4d0288], 0x3e8
jbe 0x40bec0
mov byte [0x4d0294], 2
jmp 0x40bf10
mov byte [0x4d0294], 1
jmp 0x40bf10
mov eax, dword [0x4d0288]
cmp eax, 0xa8c
jbe 0x40bede
mov byte [0x4d0294], 5
jmp 0x40bf10
cmp eax, 0x7d0
jbe 0x40beee
mov byte [0x4d0294], 4
jmp 0x40bf10
mov byte [0x4d0294], 3
jmp 0x40bf10
mov byte [0x4d0294], 5
jmp 0x40bf10
mov byte [0x4d0294], 6
jmp 0x40bf10
mov byte [0x4d0294], 6
movzx eax, byte [0x4d0294]
mov byte [0x4d0291], al
mov byte [0x4d0293], 0
jmp 0x40c11b
cmp byte [0x4d0292], 0
je 0x40c11b
mov eax, dword [0x4d0280]
cmp eax, 0xa
ja case.0x40bf43.7
jmp dword [eax*4 + 0x40bf4a]
mov byte [0x4d0294], 7
jmp 0x40c06e
mov byte [0x4d0294], 8
jmp 0x40c06e
mov eax, dword [0x4d0284]
sub eax, 1
jb 0x40bf9c
je 0x40bfa8
jmp 0x40bfb4
mov byte [0x4d0294], 9
jmp 0x40c06e
mov byte [0x4d0294], 0xa
jmp 0x40c06e
cmp byte [ebp - 0x9a], 1
jne 0x40bfc9
mov byte [0x4d0294], 0xa
jmp 0x40c06e
mov byte [0x4d0294], 0xb
jmp 0x40c06e
mov eax, dword [0x4d0284]
sub eax, 1
jb 0x40bfe9
je 0x40c004
dec eax
je 0x40c01f
dec eax
je 0x40c03a
jmp 0x40c055
cmp byte [ebp - 0x9a], 1
jne 0x40bffb
mov byte [0x4d0294], 0xc
jmp 0x40c06e
mov byte [0x4d0294], 0xd
jmp 0x40c06e
cmp byte [ebp - 0x9a], 1
jne 0x40c016
mov byte [0x4d0294], 0xe
jmp 0x40c06e
mov byte [0x4d0294], 0xf
jmp 0x40c06e
cmp byte [ebp - 0x9a], 1
jne 0x40c031
mov byte [0x4d0294], 0x10
jmp 0x40c06e
mov byte [0x4d0294], 0x11
jmp 0x40c06e
cmp byte [ebp - 0x9a], 1
jne 0x40c04c
mov byte [0x4d0294], 0x12
jmp 0x40c06e
mov byte [0x4d0294], 0x13
jmp 0x40c06e
mov byte [0x4d0294], 0x15
jmp 0x40c06e
mov byte [0x4d0294], 0x14
jmp 0x40c06e
mov byte [0x4d0294], 0x15
mov byte [0x4d0291], 0
movzx eax, byte [0x4d0294]
mov byte [0x4d0293], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x40c09b
movzx eax, word [ebp - 0xa0]
mov dword [0x4d0298], eax
jmp 0x40c0d7
mov eax, dword [0x4d028c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0xe
jl 0x40c0d7
mov eax, dword [0x4d028c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
sub eax, 0xd
push eax
mov eax, 0x4d028c
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea edx, [eax + 0x1a]
mov ebx, dword [0x4cd494]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x4d0298], eax
push 0x40c270
push 0x40c298
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.00403508
mov ebx, eax
test ebx, ebx
je 0x40c11b
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.00403ce8
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x4d0295], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x4d0294]
mov edx, dword [edx*4 + 0x4c9a90]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x1dc]
mov eax, 0x4d029c
call sub.rtl250.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp byte [0x4d0292], 0
je 0x40c208
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c170
mov eax, 0x4d029c
mov edx, 0x40c2c0
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c18a
mov eax, 0x4d029c
mov edx, 0x40c2d4
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c1a4
mov eax, 0x4d029c
mov edx, 0x40c2f8
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x4d0294], 0xc
jae 0x40c1c7
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c1c7
mov eax, 0x4d029c
mov edx, 0x40c318
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x4d0295], 0
je 0x40c1df
mov eax, 0x4d029c
mov edx, 0x40c340
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [0x4d028c], 0
je 0x40c208
push dword [0x4d029c]
push 0x40c358
push dword [0x4d028c]
mov eax, 0x4d029c
mov edx, 3
call sub.rtl250.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov edx, 0x4d0280
mov ecx, dword [0x40b984]
call sub.rtl250.bpl__System__CopyRecord_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c23b
lea eax, [ebp - 0x1dc]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret