Function at 0x40bdcc
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 0x40c310
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x53bb11], 0
je 0x40be05
cmp dword [0x54229c], 0
jne 0x40c2e4
mov byte [0x53bb11], 1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40be86
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.00403dc4
mov dword [ebp - 0x1b4], 0x11c
push 0x40c31c
push 0x40c338
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.004035c4
mov ebx, eax
test ebx, ebx
je 0x40be5e
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x40bee0
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40bee0
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x40bee0
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.00403dc4
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 0x40bed3
mov eax, dword [ebp - 0x1b0]
mov dword [0x542280], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x542284], eax
mov eax, 0x54228c
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 [0x542290], dl
cmp eax, 2
sete al
mov byte [0x542292], al
cmp byte [0x542290], 0
je 0x40bf3f
movzx eax, word [ebp - 0x1a8]
mov dword [0x542288], eax
jmp 0x40bf4a
mov eax, dword [ebp - 0x1a8]
mov dword [0x542288], eax
mov byte [0x542294], 0
xor eax, eax
mov dword [0x542298], eax
cmp byte [0x542290], 0
je 0x40c004
mov eax, dword [0x542280]
sub eax, 4
jb 0x40bfec
je 0x40bf73
jmp 0x40bfe5
mov eax, dword [0x542284]
sub eax, 0xa
jb 0x40bf87
je 0x40bfa5
dec eax
sub eax, 0x50
jb 0x40bfd3
jmp 0x40bfdc
cmp dword [0x542288], 0x3e8
jbe 0x40bf9c
mov byte [0x542294], 2
jmp 0x40bfec
mov byte [0x542294], 1
jmp 0x40bfec
mov eax, dword [0x542288]
cmp eax, 0xa8c
jbe 0x40bfba
mov byte [0x542294], 5
jmp 0x40bfec
cmp eax, 0x7d0
jbe 0x40bfca
mov byte [0x542294], 4
jmp 0x40bfec
mov byte [0x542294], 3
jmp 0x40bfec
mov byte [0x542294], 5
jmp 0x40bfec
mov byte [0x542294], 6
jmp 0x40bfec
mov byte [0x542294], 6
movzx eax, byte [0x542294]
mov byte [0x542291], al
mov byte [0x542293], 0
jmp 0x40c1f7
cmp byte [0x542292], 0
je 0x40c1f7
mov eax, dword [0x542280]
cmp eax, 0xa
ja case.0x40c01f.7
jmp dword [eax*4 + 0x40c026]
mov byte [0x542294], 7
jmp 0x40c14a
mov byte [0x542294], 8
jmp 0x40c14a
mov eax, dword [0x542284]
sub eax, 1
jb 0x40c078
je 0x40c084
jmp 0x40c090
mov byte [0x542294], 9
jmp 0x40c14a
mov byte [0x542294], 0xa
jmp 0x40c14a
cmp byte [ebp - 0x9a], 1
jne 0x40c0a5
mov byte [0x542294], 0xa
jmp 0x40c14a
mov byte [0x542294], 0xb
jmp 0x40c14a
mov eax, dword [0x542284]
sub eax, 1
jb 0x40c0c5
je 0x40c0e0
dec eax
je 0x40c0fb
dec eax
je 0x40c116
jmp 0x40c131
cmp byte [ebp - 0x9a], 1
jne 0x40c0d7
mov byte [0x542294], 0xc
jmp 0x40c14a
mov byte [0x542294], 0xd
jmp 0x40c14a
cmp byte [ebp - 0x9a], 1
jne 0x40c0f2
mov byte [0x542294], 0xe
jmp 0x40c14a
mov byte [0x542294], 0xf
jmp 0x40c14a
cmp byte [ebp - 0x9a], 1
jne 0x40c10d
mov byte [0x542294], 0x10
jmp 0x40c14a
mov byte [0x542294], 0x11
jmp 0x40c14a
cmp byte [ebp - 0x9a], 1
jne 0x40c128
mov byte [0x542294], 0x12
jmp 0x40c14a
mov byte [0x542294], 0x13
jmp 0x40c14a
mov byte [0x542294], 0x15
jmp 0x40c14a
mov byte [0x542294], 0x14
jmp 0x40c14a
mov byte [0x542294], 0x15
mov byte [0x542291], 0
movzx eax, byte [0x542294]
mov byte [0x542293], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x40c177
movzx eax, word [ebp - 0xa0]
mov dword [0x542298], eax
jmp 0x40c1b3
mov eax, dword [0x54228c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0xe
jl 0x40c1b3
mov eax, dword [0x54228c]
call sub.rtl250.bpl__System__UStrLen_qqrx20System_UnicodeString
sub eax, 0xd
push eax
mov eax, 0x54228c
call sub.rtl250.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea edx, [eax + 0x1a]
mov ebx, dword [0x53fc3c]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x542298], eax
push 0x40c34c
push 0x40c374
call sub.kernel32.dll_GetModuleHandleW
push eax
call fcn.004035c4
mov ebx, eax
test ebx, ebx
je 0x40c1f7
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.00403dc4
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x542295], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x542294]
mov edx, dword [edx*4 + 0x53ba90]
mov ecx, 0
call sub.rtl250.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x1dc]
mov eax, 0x54229c
call sub.rtl250.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp byte [0x542292], 0
je 0x40c2e4
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c24c
mov eax, 0x54229c
mov edx, 0x40c39c
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c266
mov eax, 0x54229c
mov edx, 0x40c3b0
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c280
mov eax, 0x54229c
mov edx, 0x40c3d4
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x542294], 0xc
jae 0x40c2a3
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x40c2a3
mov eax, 0x54229c
mov edx, 0x40c3f4
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x542295], 0
je 0x40c2bb
mov eax, 0x54229c
mov edx, 0x40c41c
call sub.rtl250.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [0x54228c], 0
je 0x40c2e4
push dword [0x54229c]
push 0x40c434
push dword [0x54228c]
mov eax, 0x54229c
mov edx, 3
call sub.rtl250.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov edx, 0x542280
mov ecx, dword [0x40ba60]
call sub.rtl250.bpl__System__CopyRecord_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c317
lea eax, [ebp - 0x1dc]
call sub.rtl250.bpl__System__LStrClr_qqrpv
ret