Function at 0x4bf7ce
Capabilities:
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x418c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4190]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4194]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4198]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 2
and eax, 7
test eax, eax
je 0x4bf876
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 2
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jns 0x4bf82e
add dword [ebp - 0x40], 7
mov eax, dword [ebp - 0x40]
sar eax, 3
shl eax, 3
mov edx, dword [ebp - 0x3c]
sub edx, eax
mov eax, 8
sub eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
add eax, dword [edx + 4]
add eax, 8
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx]
mov dword [ecx], eax
mov dword [ebp - 0x20], 0
mov eax, dword [ebp + 8]
add eax, 0xa
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jns 0x4bf898
add dword [ebp - 0x44], 3
mov eax, dword [ebp - 0x44]
sar eax, 2
cmp eax, dword [ebp - 0x20]
jle 0x4bf97f
mov eax, dword [ebp - 0x20]
lea edx, [eax*4]
mov eax, dword [ebp - 0x24]
mov eax, dword [edx + eax]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
shl eax, 2
add eax, dword [ebp - 0x24]
add eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x61c88647
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0x1f
jg 0x4bf950
mov eax, dword [ebp - 0x2c]
mov edx, eax
shl edx, 4
mov eax, dword [ebp - 0x2c]
shr eax, 5
xor eax, edx
mov ecx, eax
add ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x34]
and edx, 3
mov eax, dword [ebp - 0x34]
add eax, dword [ebp + edx*4 - 0x18]
mov edx, ecx
xor edx, eax
lea eax, [ebp - 0x28]
add dword [eax], edx
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x34]
sub dword [eax], edx
mov eax, dword [ebp - 0x28]
mov edx, eax
shl edx, 4
mov eax, dword [ebp - 0x28]
shr eax, 5
xor eax, edx
mov ecx, eax
add ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x34]
shr eax, 0xb
mov edx, eax
and edx, 3
mov eax, dword [ebp - 0x34]
add eax, dword [ebp + edx*4 - 0x18]
mov edx, ecx
xor edx, eax
lea eax, [ebp - 0x2c]
add dword [eax], edx
lea eax, [ebp - 0x38]
inc dword [eax]
jmp 0x4bf8e0
mov eax, dword [ebp - 0x20]
lea ecx, [eax*4]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ecx + edx], eax
mov eax, dword [ebp - 0x20]
shl eax, 2
add eax, dword [ebp - 0x24]
lea edx, [eax + 4]
mov eax, dword [ebp - 0x2c]
mov dword [edx], eax
lea eax, [ebp - 0x20]
add dword [eax], 2
jmp 0x4bf886
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, 2
mov dword [edx], eax
mov edx, dword [ebp + 8]
add edx, 8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov word [edx], ax
leave
ret