Function at 0x47108c
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffecc
mov eax, dword [ebp + 0x14]
cmp eax, 0x10
je 0x4710b4
mov edx, dword [ebp + 0x14]
cmp edx, 0xc
je 0x4710b4
mov ecx, dword [ebp + 0x14]
cmp ecx, 8
je 0x4710b4
mov dword [ebp + 0x14], 0x10
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
mov dword [eax], edx
mov ecx, dword [ebp + 8]
add ecx, 4
mov dword [ebp - 0x14], ecx
xor eax, eax
mov dword [ebp - 0x20], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
jmp 0x471172
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx]
mov dword [ebp - 4], eax
inc dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 8
or dword [ebp - 4], ecx
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or dword [ebp - 4], edx
inc dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx]
shl eax, 0x18
or dword [ebp - 4], eax
inc dword [ebp + 0x10]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
mov dword [ebp + edx*4 - 0x134], ecx
inc dword [ebp - 0x20]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax]
mov dword [ebp - 4], edx
inc dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx]
shl eax, 8
or dword [ebp - 4], eax
inc dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x10
or dword [ebp - 4], ecx
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax]
shl edx, 0x18
or dword [ebp - 4], edx
inc dword [ebp + 0x10]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x134], eax
inc dword [ebp - 0x20]
add dword [ebp - 0x1c], 8
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff8
mov ecx, dword [ebp - 0x1c]
cmp edx, ecx
jge 0x4710d4
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x1c]
sub eax, edx
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x47127b
mov eax, dword [ebp + 0xc]
and eax, 7
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
add dword [ebp + 0x10], edx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x18]
cmp eax, 8
ja case.0x4711bc.0
jmp dword [eax*4 + 0x4711c3]
dec dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [edx]
shl eax, 0x18
mov dword [ebp - 8], eax
dec dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x10
or dword [ebp - 8], ecx
dec dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax]
shl edx, 8
or dword [ebp - 8], edx
dec dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx]
or dword [ebp - 8], eax
dec dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
shl ecx, 0x18
mov dword [ebp - 4], ecx
dec dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dl, byte [eax]
shl edx, 0x10
or dword [ebp - 4], edx
dec dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
xor eax, eax
mov al, byte [ecx]
shl eax, 8
or dword [ebp - 4], eax
dec dword [ebp + 0x10]
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov cl, byte [edx]
or dword [ebp - 4], ecx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x134], edx
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 8]
mov dword [ebp + ecx*4 - 0x130], eax
mov edx, dword [ebp + 0xc]
add edx, 3
test edx, edx
jns 0x471288
add edx, 3
sar edx, 2
mov dword [ebp - 0x28], edx
mov ecx, dword [ebp + 0x14]
inc ecx
add ecx, ecx
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x14]
mov dword [eax], 0xb7e15163
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
cmp edx, ecx
jge 0x4712da
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + edx*4 - 4]
add ecx, 0x9e3779b9
and ecx, 0xffffffff
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov dword [eax + edx*4], ecx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x2c]
cmp ecx, eax
jl 0x4712b1
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
cmp edx, ecx
jle 0x4712e9
mov eax, dword [ebp - 0x2c]
jmp 0x4712ec
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
lea edx, [edx + edx*2]
mov dword [ebp - 0x20], edx
xor ecx, ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jge 0x4713dc
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + ecx*4]
mov edx, dword [ebp - 0xc]
add eax, edx
mov ecx, dword [ebp - 0x10]
add eax, ecx
and eax, 0xffffffff
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
shl eax, 3
mov edx, dword [ebp - 0x18]
and edx, 0xffffffff
shr edx, 0x1d
or eax, edx
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword [ecx + edx*4], eax
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add ecx, eax
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp + edx*4 - 0x134]
mov eax, dword [ebp - 0xc]
add ecx, eax
mov edx, dword [ebp - 0x10]
add ecx, edx
and ecx, 0xffffffff
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
and ecx, 0x1f
push ecx
mov ecx, 0x20
pop eax
sub ecx, eax
mov edx, dword [ebp - 0x18]
and edx, 0xffffffff
shr edx, cl
mov ecx, dword [ebp - 0x24]
and ecx, 0x1f
mov eax, dword [ebp - 0x18]
shl eax, cl
or edx, eax
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x134], edx
mov dword [ebp - 0x10], edx
inc dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
cmp ecx, eax
jl 0x4713b9
xor edx, edx
mov dword [ebp - 0x30], edx
inc dword [ebp - 0x34]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
cmp ecx, eax
jl 0x4713cb
xor edx, edx
mov dword [ebp - 0x34], edx
inc dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jl 0x47131b
mov esp, ebp
pop ebp
ret