Function at 0x50e8a4
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x50eace
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
xor edx, edx
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
lea eax, [ebp - 0x120]
mov edx, 0x11c
call fcn.00402518
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call sub.kernel32.dll_GetVersionExW
lea eax, [ebp - 0x144]
mov edx, 0x24
call fcn.00402518
push 0x50eadc
push 0x50eb04
call sub.kernel32.dll_GetModuleHandleW_1
push eax
call fcn.00401bd0
test eax, eax
je 0x50e92a
lea edx, [ebp - 0x144]
push edx
call eax
jmp 0x50e936
lea eax, [ebp - 0x144]
push eax
call sub.kernel32.dll_GetSystemInfo
cmp dword [ebp - 0x110], 2
jne 0x50eaae
test bl, bl
je 0x50e966
call fcn.0050ec58
mov edx, dword [eax]
mov dword [ebp - 0x11c], edx
mov edx, dword [eax + 4]
mov dword [ebp - 0x118], edx
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffffd
sub eax, 2
jae 0x50e981
lea eax, [ebp - 4]
mov edx, 0x50eb2c
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
cmp dword [ebp - 0x11c], 5
jne 0x50e9a5
cmp dword [ebp - 0x118], 0
jne 0x50e9a5
lea eax, [ebp - 4]
mov edx, 0x50eb50
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
cmp dword [ebp - 0x11c], 5
jne 0x50e9c9
cmp dword [ebp - 0x118], 1
jne 0x50e9c9
lea eax, [ebp - 4]
mov edx, 0x50eb78
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
cmp dword [ebp - 0x11c], 5
jne 0x50ea0f
cmp dword [ebp - 0x118], 2
jne 0x50ea0f
cmp byte [ebp - 6], 1
jne 0x50e9fd
cmp word [ebp - 0x144], 9
jne 0x50e9fd
lea eax, [ebp - 4]
mov edx, 0x50eb78
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
lea eax, [ebp - 4]
mov edx, 0x50eb9c
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
cmp dword [ebp - 0x11c], 6
jne 0x50ea30
cmp dword [ebp - 0x118], 0
jne 0x50ea30
lea eax, [ebp - 4]
mov edx, 0x50ebd0
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
cmp dword [ebp - 0x11c], 6
jne 0x50ea51
cmp dword [ebp - 0x118], 1
jne 0x50ea51
lea eax, [ebp - 4]
mov edx, 0x50ebf8
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
cmp dword [ebp - 0x11c], 6
jne 0x50ea77
mov eax, dword [ebp - 0x118]
add eax, 0xfffffffe
sub eax, 2
jae 0x50ea77
lea eax, [ebp - 4]
mov edx, 0x50ec18
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
mov eax, dword [ebp - 0x11c]
cmp eax, 6
jne 0x50ea9c
mov edx, dword [ebp - 0x118]
sub edx, 4
jne 0x50ea9c
lea eax, [ebp - 4]
mov edx, 0x50ec38
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
jmp 0x50eaae
cmp eax, 0xa
jne 0x50eaae
lea eax, [ebp - 4]
mov edx, 0x50ec38
call sub.rtl120.bpl__System__UStrLAsg_qqrr20System_UnicodeStringx20System_UnicodeString
mov eax, esi
mov edx, dword [ebp - 4]
call sub.rtl120.bpl__System__UStrAsg_qqrr20System_UnicodeStringx20System_UnicodeString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50ead5
lea eax, [ebp - 4]
call sub.rtl120.bpl__System__UStrClr_qqrpv
ret