Function at 0x10025810
Capabilities:
Encrypt data using tea
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0x10]
push ebx
lea edx, [eax + 0x228]
push esi
mov ecx, eax
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x28], edx
cmp eax, edx
ja 0x10025ab1
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0x10]
jmp 0x10025840
cmp ecx, 0x70e4
ja 0x10025950
je 0x10025ab1
cmp ecx, 0x6c63
ja 0x10025925
je 0x1002589b
mov eax, ecx
sub eax, 0x2d4
je 0x1002588f
sub eax, 6
je 0x10025ab1
sub eax, 0x6983
jne case.0x10025966.32400
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
mov dword [ebp + 0x10], ecx
xor esi, esi
jmp case.0x10025966.32400
mov dword [ebp - 0x10], 0
jmp case.0x10025966.32400
cmp dword [ebx], 0
jle 0x10025918
mov eax, 0x1d12
mov dword [ebp - 0x14], eax
sub eax, 0x1d12
je 0x100258db
sub eax, 0x5d
jne 0x10025901
mov eax, dword [ebp + 0x10]
mov edx, eax
mov ecx, eax
shr edx, 5
shl ecx, 4
xor edx, ecx
mov ecx, dword [ebp + 0x14]
add edx, eax
mov eax, esi
shr eax, 0xb
and eax, 3
mov eax, dword [ecx + eax*4]
add eax, esi
xor edx, eax
add edi, edx
jmp 0x10025901
mov ecx, edi
shr ecx, 5
mov edx, edi
shl edx, 4
xor ecx, edx
mov edx, dword [ebp + 0x14]
mov eax, esi
and eax, 3
mov eax, dword [edx + eax*4]
add ecx, edi
add eax, esi
xor ecx, eax
add dword [ebp + 0x10], ecx
sub esi, 0x61c88647
mov eax, dword [ebp - 0x14]
add eax, 0x5d
mov dword [ebp - 0x14], eax
cmp eax, 0x1d6f
jbe 0x100258a8
dec dword [ebx]
cmp dword [ebx], 0
jg 0x100258a0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
jmp case.0x10025966.32400
cmp ecx, 0x6c69
je 0x10025945
cmp ecx, 0x70de
jne case.0x10025966.32400
mov dword [ebp - 0x10], 0x10075775
jmp case.0x10025966.32400
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
jmp case.0x10025966.32400
lea eax, [ecx - 0x7e8f]
cmp eax, 0x1e
ja case.0x10025966.32400
movzx ecx, byte [eax + 0x10025b0c]
jmp dword [ecx*4 + 0x10025af0]
mov eax, dword [ebp + 0x14]
inc dword [ebx + 0x11e8]
test eax, eax
je case.0x10025966.32400
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
jmp case.0x10025966.32400
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebx + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x20]
push eax
push ecx
push 0xf7c
call fcn.100149b0
add dword [ebx + 0x20], 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x20]
add esp, 0x18
cmp eax, dword [ebx + 0x24]
jb case.0x10025966.32400
mov dword [ebx + 0x20], 0
jmp case.0x10025966.32400
mov eax, dword [ebx + 0x1180]
mov edx, dword [ebx + 4]
push 0
push 0x58f7
push eax
push 0
mov dword [ebp - 0x24], edx
call fcn.10024860
add esp, 0x10
mov dword [ebp - 8], eax
test eax, eax
je 0x10025ad5
jmp case.0x10025966.32400
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x1c], ebx
inc dword [ebx + 0x11ec]
jmp case.0x10025966.32400
test byte [ebx + 0x11b0], 1
mov edx, dword [ebx + 0x20]
mov dword [ebp - 4], edx
je 0x10025a55
push 0x46f6
push 0
push 0
call fcn.1000c2b0
add esp, 0xc
mov dword [ebp - 0xc], eax
test eax, eax
jne case.0x10025966.32400
mov eax, 0x2870
cmp eax, eax
je 0x10025abb
add eax, 0x2c
cmp eax, 0x2870
jbe 0x10025a47
jmp case.0x10025966.32400
mov ecx, 0x22f8
lea ebx, [ebx]
mov eax, ecx
sub eax, 0x22f8
je 0x10025a85
sub eax, 0x5d
je 0x10025a7b
sub eax, 0x5d
jne 0x10025a94
add edx, 0x20
mov dword [ebp - 4], edx
jmp 0x10025a94
mov eax, dword [ebp - 8]
add eax, edx
mov dword [ebp - 0xc], eax
jmp 0x10025a94
mov eax, dword [ebp - 8]
lea edx, [eax + edx + 7]
and edx, 0xfffffff8
sub edx, eax
mov dword [ebp - 4], edx
add ecx, 0x5d
cmp ecx, 0x23b2
jbe 0x10025a60
mov ecx, dword [ebp - 0x18]
add ecx, 6
mov dword [ebp - 0x18], ecx
cmp ecx, dword [ebp - 0x28]
jbe 0x10025840
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebx + 0x1180]
push 0x1e0
push eax
push ecx
push 0
call fcn.100381a0
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
fdiv qword [ebx + 0x5f]
mov ebx, 0xf4458b5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret