Function at 0x40fd14
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 0x410258
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x58d444], 0
je 0x40fd4d
cmp dword [0x5a0154], 0
jne 0x41022c
mov byte [0x58d444], 1
call sub.kernel32.dll_GetVersion
test eax, 0x80000000
jne 0x40fdce
lea eax, [ebp - 0x1b4]
mov edx, 0x11c
call fcn.0040288c
mov dword [ebp - 0x1b4], 0x11c
push 0x410264
push 0x410280
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401c48
mov ebx, eax
test ebx, ebx
je 0x40fda6
lea eax, [ebp - 0x1b4]
push eax
call ebx
test eax, eax
je 0x40fe28
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
jne 0x40fe28
mov dword [ebp - 0x1b4], 0x114
lea eax, [ebp - 0x1b4]
push eax
call sub.kernel32.dll_GetVersionExW
jmp 0x40fe28
lea eax, [ebp - 0x98]
mov edx, 0x94
call fcn.0040288c
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.rtl120.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 0x40fe1b
mov eax, dword [ebp - 0x1b0]
mov dword [0x5a0138], eax
mov eax, dword [ebp - 0x1ac]
mov dword [0x5a013c], eax
mov eax, 0x5a0144
lea edx, [ebp - 0x1a0]
mov ecx, 0x80
call sub.rtl120.bpl__System__UStrFromWArray_qqrr20System_UnicodeStringpbi
mov eax, dword [ebp - 0x1a4]
cmp eax, 1
sete dl
mov byte [0x5a0148], dl
cmp eax, 2
sete al
mov byte [0x5a014a], al
cmp byte [0x5a0148], 0
je 0x40fe87
movzx eax, word [ebp - 0x1a8]
mov dword [0x5a0140], eax
jmp 0x40fe92
mov eax, dword [ebp - 0x1a8]
mov dword [0x5a0140], eax
mov byte [0x5a014c], 0
xor eax, eax
mov dword [0x5a0150], eax
cmp byte [0x5a0148], 0
je 0x40ff4c
mov eax, dword [0x5a0138]
sub eax, 4
jb 0x40ff34
je 0x40febb
jmp 0x40ff2d
mov eax, dword [0x5a013c]
sub eax, 0xa
jb 0x40fecf
je 0x40feed
dec eax
sub eax, 0x50
jb 0x40ff1b
jmp 0x40ff24
cmp dword [0x5a0140], 0x3e8
jbe 0x40fee4
mov byte [0x5a014c], 2
jmp 0x40ff34
mov byte [0x5a014c], 1
jmp 0x40ff34
mov eax, dword [0x5a0140]
cmp eax, 0xa8c
jbe 0x40ff02
mov byte [0x5a014c], 5
jmp 0x40ff34
cmp eax, 0x7d0
jbe 0x40ff12
mov byte [0x5a014c], 4
jmp 0x40ff34
mov byte [0x5a014c], 3
jmp 0x40ff34
mov byte [0x5a014c], 5
jmp 0x40ff34
mov byte [0x5a014c], 6
jmp 0x40ff34
mov byte [0x5a014c], 6
movzx eax, byte [0x5a014c]
mov byte [0x5a0149], al
mov byte [0x5a014b], 0
jmp 0x41013f
cmp byte [0x5a014a], 0
je 0x41013f
mov eax, dword [0x5a0138]
cmp eax, 0xa
ja case.0x40ff67.7
jmp dword [eax*4 + 0x40ff6e]
mov byte [0x5a014c], 7
jmp 0x410092
mov byte [0x5a014c], 8
jmp 0x410092
mov eax, dword [0x5a013c]
sub eax, 1
jb 0x40ffc0
je 0x40ffcc
jmp 0x40ffd8
mov byte [0x5a014c], 9
jmp 0x410092
mov byte [0x5a014c], 0xa
jmp 0x410092
cmp byte [ebp - 0x9a], 1
jne 0x40ffed
mov byte [0x5a014c], 0xa
jmp 0x410092
mov byte [0x5a014c], 0xb
jmp 0x410092
mov eax, dword [0x5a013c]
sub eax, 1
jb 0x41000d
je 0x410028
dec eax
je 0x410043
dec eax
je 0x41005e
jmp 0x410079
cmp byte [ebp - 0x9a], 1
jne 0x41001f
mov byte [0x5a014c], 0xc
jmp 0x410092
mov byte [0x5a014c], 0xd
jmp 0x410092
cmp byte [ebp - 0x9a], 1
jne 0x41003a
mov byte [0x5a014c], 0xe
jmp 0x410092
mov byte [0x5a014c], 0xf
jmp 0x410092
cmp byte [ebp - 0x9a], 1
jne 0x410055
mov byte [0x5a014c], 0x10
jmp 0x410092
mov byte [0x5a014c], 0x11
jmp 0x410092
cmp byte [ebp - 0x9a], 1
jne 0x410070
mov byte [0x5a014c], 0x12
jmp 0x410092
mov byte [0x5a014c], 0x13
jmp 0x410092
mov byte [0x5a014c], 0x15
jmp 0x410092
mov byte [0x5a014c], 0x14
jmp 0x410092
mov byte [0x5a014c], 0x15
mov byte [0x5a0149], 0
movzx eax, byte [0x5a014c]
mov byte [0x5a014b], al
cmp dword [ebp - 0x1b4], 0x11c
jb 0x4100bf
movzx eax, word [ebp - 0xa0]
mov dword [0x5a0150], eax
jmp 0x4100fb
mov eax, dword [0x5a0144]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
cmp eax, 0xe
jl 0x4100fb
mov eax, dword [0x5a0144]
call sub.rtl120.bpl__System__UStrLen_qqrx20System_UnicodeString
sub eax, 0xd
push eax
mov eax, 0x5a0144
call sub.rtl120.bpl__System__UniqueStringU_qqrr20System_UnicodeString
lea edx, [eax + 0x1a]
mov ebx, dword [0x59ec10]
mov ebx, dword [ebx]
xor eax, eax
pop ecx
call ebx
mov dword [0x5a0150], eax
push 0x410294
push 0x4102bc
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401c48
mov ebx, eax
test ebx, ebx
je 0x41013f
lea eax, [ebp - 0x1d8]
mov edx, 0x24
call fcn.0040288c
lea eax, [ebp - 0x1d8]
push eax
call ebx
cmp word [ebp - 0x1d8], 9
sete al
mov byte [0x5a014d], al
lea eax, [ebp - 0x1dc]
movzx edx, byte [0x5a014c]
mov edx, dword [edx*4 + 0x58d3c0]
mov ecx, 0
call sub.rtl120.bpl__System__LStrFromPChar_qqrr27System__AnsiStringT_us_i0__pcus
mov edx, dword [ebp - 0x1dc]
mov eax, 0x5a0154
call sub.rtl120.bpl__System__UStrFromLStr_qqrr20System_UnicodeStringx27System__AnsiStringT_us_i0__
cmp byte [0x5a014a], 0
je 0x41022c
push 0x59
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x410194
mov eax, 0x5a0154
mov edx, 0x4102e4
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x56
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4101ae
mov eax, 0x5a0154
mov edx, 0x4102f8
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
push 0x58
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4101c8
mov eax, 0x5a0154
mov edx, 0x41031c
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x5a014c], 0xc
jae 0x4101eb
push 0x57
call sub.user32.dll_GetSystemMetrics
test eax, eax
je 0x4101eb
mov eax, 0x5a0154
mov edx, 0x41033c
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp byte [0x5a014d], 0
je 0x410203
mov eax, 0x5a0154
mov edx, 0x410364
call sub.rtl120.bpl__System__UStrCat_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [0x5a0144], 0
je 0x41022c
push dword [0x5a0154]
push 0x41037c
push dword [0x5a0144]
mov eax, 0x5a0154
mov edx, 3
call sub.rtl120.bpl__System__UStrCatN_qqrv
mov eax, dword [ebp - 4]
mov edx, 0x5a0138
mov ecx, dword [0x40fbb4]
call sub.rtl120.bpl__System__CopyRecord_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41025f
lea eax, [ebp - 0x1dc]
call sub.rtl120.bpl__System__LStrClr_qqrpv
ret