Function at 0x1002af80
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100651d2
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x1008b884]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x70]
mov ecx, dword [ebp + 0x10]
mov esi, ebx
mov dword [ebp - 0x74], eax
neg esi
lea eax, [ebx + 4]
mov dword [ebp - 0x6c], 0
sbb esi, esi
and esi, eax
mov eax, dword [ecx]
push edx
push 0x1008c494
push str.Rounds
mov eax, dword [eax + 4]
call eax
test al, al
je 0x1002afef
mov edi, dword [ebp - 0x70]
cmp edi, 1
jl 0x1002b174
jmp 0x1002aff4
mov edi, 0x10
mov dword [ebx + 0xc], edi
lea edi, [edi*2 + 2]
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov dword [ebp - 0x6c], edi
cmp ecx, edi
je 0x1002b02e
test edx, edx
je 0x1002b021
mov edi, edx
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call fcn.1001f490
mov edi, dword [ebp - 0x6c]
add esp, 4
push 0
push edi
lea ecx, [ebx + 0x10]
call fcn.1000b860
mov edx, eax
mov dword [ebx + 0x18], edi
lea ecx, [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov eax, 1
push 0
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x14], 0x3fffffff
lea esi, [edi + 3]
mov dword [ebp - 0x1c], 0x3fffffff
shr esi, 2
cmp esi, eax
cmovb esi, eax
push esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x18], esi
call fcn.1000b860
mov dword [ebp - 0x14], eax
push edi
push dword [ebp - 0x74]
shl esi, 2
push esi
push eax
mov dword [ebp - 4], 4
call fcn.10020270
mov eax, dword [ebp - 0x14]
sub esi, edi
push esi
add eax, edi
push 0
push eax
call fcn.1004a330
add esp, 0x1c
cmp edi, 0xfffffffc
ja 0x1002b1c6
mov eax, dword [ebx + 0x1c]
mov edx, 1
mov dword [eax], 0xb7e15163
mov eax, dword [ebx + 0x18]
cmp eax, edx
jbe 0x1002b0c8
nop
mov eax, dword [ebx + 0x1c]
lea ecx, [eax + edx*4]
inc edx
mov eax, dword [ecx - 4]
sub eax, 0x61c88647
mov dword [ecx], eax
mov eax, dword [ebx + 0x18]
cmp edx, eax
jb 0x1002b0b0
mov esi, dword [ebp - 0x6c]
xor edi, edi
cmp eax, esi
mov dword [ebp - 0x70], edi
cmovb eax, esi
lea ecx, [eax + eax*2]
xor eax, eax
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], eax
test ecx, ecx
je 0x1002b129
xor edx, edx
div dword [ebx + 0x18]
mov eax, dword [ebx + 0x1c]
lea ecx, [eax + edx*4]
xor edx, edx
mov eax, dword [ecx]
add eax, dword [ebp - 0x70]
add edi, eax
mov eax, dword [ebp - 0x6c]
div esi
mov eax, dword [ebp - 0x14]
lea edx, [eax + edx*4]
rol edi, 3
mov dword [ecx], edi
mov eax, dword [edx]
mov ecx, dword [ebp - 0x70]
add eax, ecx
add eax, edi
add ecx, edi
and ecx, 0x1f
rol eax, cl
mov dword [ebp - 0x70], eax
mov dword [edx], eax
mov eax, dword [ebp - 0x6c]
inc eax
mov dword [ebp - 0x6c], eax
cmp eax, dword [ebp - 0x74]
jb 0x1002b0e4
mov edx, dword [ebp - 0x14]
cmp esi, 0x3fffffff
mov eax, 0x3fffffff
mov dword [ebp - 4], 6
cmova esi, eax
test edx, edx
je 0x1002b156
mov edi, edx
xor eax, eax
mov ecx, esi
rep stosd dword es:[edi], eax
push edx
call fcn.1001f490
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100472b7
mov esp, ebp
pop ebp
ret 0xc
test esi, esi
je 0x1002b193
mov eax, dword [esi]
lea ecx, [ebp - 0x40]
push ecx
mov ecx, esi
call dword [eax + 8]
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 1
jmp 0x1002b1ae
push str.VariableRounds
lea ecx, [ebp - 0x28]
call fcn.100057b0
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], 2
push edi
push eax
lea ecx, [ebp - 0x68]
call fcn.100295c0
push 0x10089068
lea eax, [ebp - 0x68]
push eax
call fcn.1004889d
push 0x1006d8d0
lea ecx, [ebp - 0x40]
call fcn.100057b0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x68]
call fcn.10006040
push 0x100885e0
lea eax, [ebp - 0x68]
push eax
call fcn.1004889d
int3