Function at 0xbbbf29
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
cmp dword [0x5e4aec], 0
push ebx
push esi
push edi
je 0xbbbf7d
push 0xdc
push 0x5e4b38
push 0x13
push 5
call fcn.00b848bd
add esp, 0x10
call fcn.00b84895
cmp eax, dword [0x5e4af0]
sete al
and eax, 1
mov dword [ebp - 0x10], eax
push 0xde
push 0x5e4b50
push 0x13
push 6
call fcn.00b848bd
add esp, 0x10
jmp 0xbbbf82
xor edx, edx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jne 0xbbbf9e
push 0xe3
push 0x5e4b68
push 0x12
push 9
call fcn.00b848bd
add esp, 0x10
mov ebx, dword [0x5e4ad4]
mov eax, dword [0x5e4ad8]
mov dword [ebp - 0xc], eax
mov edx, dword [0x5e4adc]
mov dword [ebp - 8], edx
push 0x14
push 0x621007
lea ecx, [ebp - 0x24]
push ecx
call fcn.00cbbfb1
add esp, 0xc
mov ecx, dword [ebp + 0xc]
add dword [0x5e4ad4], ecx
cmp dword [0x5e4ad4], 0x3ff
jl 0xbbbffc
mov ecx, 0x3ff
mov eax, dword [0x5e4ad4]
cdq
idiv ecx
mov dword [0x5e4ad4], edx
mov dword [0x5e4ad0], 0x3ff
jmp 0xbbc018
mov eax, dword [0x5e4ad0]
cmp eax, 0x3ff
jge 0xbbc018
mov edx, dword [0x5e4ad4]
cmp eax, edx
jge 0xbbc018
mov dword [0x5e4ad0], edx
mov eax, dword [ebp + 0xc]
mov ecx, 0x14
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov esi, 0x14
cdq
idiv esi
test edx, edx
setg al
and eax, 1
add ecx, eax
add dword [0x5e4adc], ecx
cmp dword [ebp - 0x10], 0
jne 0xbbc05c
push 0x103
push 0x5e4b80
push 0x12
push 0xa
call fcn.00b848bd
add esp, 0x10
lea edx, [ebp - 0x34]
push edx
call fcn.00bc0281
pop ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jge 0xbbc16d
mov edi, dword [ebp + 0xc]
sub edi, dword [ebp - 4]
cmp edi, 0x14
jle 0xbbc089
mov eax, 0x14
jmp 0xbbc08b
mov eax, edi
mov edi, eax
push 0
call fcn.00bc27bd
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.00bc03c9
add esp, 0xc
push 0x14
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x34]
push ecx
call fcn.00bc048d
add esp, 0xc
lea esi, [edi + ebx - 0x3ff]
test esi, esi
jle 0xbbc0eb
mov eax, edi
mov edx, 0x620bf4
sub eax, esi
add edx, ebx
push eax
push edx
lea ecx, [ebp - 0x34]
push ecx
call fcn.00bc048d
add esp, 0xc
lea ecx, [ebp - 0x34]
push esi
push 0x620bf4
push ecx
call fcn.00bc048d
add esp, 0xc
jmp 0xbbc100
push edi
mov eax, 0x620bf4
add eax, ebx
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.00bc048d
add esp, 0xc
push edi
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x34]
push eax
call fcn.00bc048d
add esp, 0xc
push 8
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x34]
push ecx
call fcn.00bc048d
add esp, 0xc
push 0
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x34]
push edx
call fcn.00bc04d1
add esp, 0xc
inc dword [ebp - 8]
add dword [ebp + 8], edi
xor esi, esi
lea eax, [ebp - 0x24]
cmp edi, esi
jle 0xbbc15d
mov dl, byte [eax]
xor byte [ebx + 0x620bf4], dl
inc ebx
cmp ebx, 0x3ff
jl 0xbbc157
xor ebx, ebx
inc esi
inc eax
cmp edi, esi
jg 0xbbc144
add dword [ebp - 4], 0x14
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jl 0xbbc077
lea edx, [ebp - 0x34]
push edx
call fcn.00bc0701
cmp dword [ebp - 0x10], 0
pop ecx
jne 0xbbc193
push 0x12e
push 0x5e4b98
push 0x12
push 9
call fcn.00b848bd
add esp, 0x10
xor esi, esi
mov edx, 0x621007
lea eax, [ebp - 0x24]
mov cl, byte [eax]
xor byte [edx], cl
inc esi
inc edx
inc eax
cmp esi, 0x14
jl 0xbbc19d
fld qword [0x5e4ae0]
fld dword [0x4975a4]
fxch st(1)
fucompp
fnstsw ax
test ah, 5
jp 0xbbc1cf
fld qword [ebp + 0x10]
fadd qword [0x5e4ae0]
fstp qword [0x5e4ae0]
cmp dword [ebp - 0x10], 0
jne 0xbbc1eb
push 0x139
push 0x5e4bb0
push 0x12
push 0xa
call fcn.00b848bd
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret