Function at 0x48a6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x48a9ed
cmp dword [0x5863c8], 0
push esi
push edi
je 0x48a74d
lea eax, [ebp - 8]
push eax
call fcn.0045c0d0
push 0xdf
push 0x539540
push 0x13
push 5
call fcn.0045c2c0
lea eax, [ebp - 8]
push eax
push 0x5867f4
call fcn.0045c060
mov esi, eax
push 0xe1
neg esi
push 0x539540
sbb esi, esi
push 0x13
inc esi
push 6
mov dword [ebp + 0xc], esi
call fcn.0045c2c0
add esp, 0x2c
test esi, esi
jne 0x48a76a
jmp 0x48a754
mov dword [ebp + 0xc], 0
push 0xe6
push 0x539540
push 0x12
push 9
call fcn.0045c2c0
add esp, 0x10
mov ecx, dword [0x5863b0]
mov edi, ecx
mov eax, dword [0x5863b4]
add ecx, ebx
mov dword [ebp - 0x10], eax
mov eax, dword [0x5863b8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x5863dc]
mov dword [ebp - 0x14], eax
mov dword [0x5863b0], ecx
movdqu xmm0, xmmword [0x5863cc]
movdqu xmmword [ebp - 0x24], xmm0
cmp ecx, 0x3ff
jl 0x48a7d4
mov eax, 0x7fdff7fd
mov dword [0x5863ac], 0x3ff
imul ecx
sub edx, ecx
sar edx, 9
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3ff
add ecx, eax
mov dword [0x5863b0], ecx
jmp 0x48a7ea
mov eax, dword [0x5863ac]
cmp eax, 0x3ff
jge 0x48a7ea
cmp ecx, eax
cmovg eax, ecx
mov dword [0x5863ac], eax
mov eax, 0x66666667
mov ecx, ebx
imul ebx
sar edx, 3
mov esi, edx
shr esi, 0x1f
add esi, edx
lea eax, [esi + esi*4]
shl eax, 2
sub ecx, eax
xor eax, eax
test ecx, ecx
setg al
add eax, esi
add dword [0x5863b8], eax
cmp dword [ebp + 0xc], 0
jne 0x48a830
push 0x106
push 0x539540
push 0x12
push 0xa
call fcn.0045c2c0
add esp, 0x10
lea eax, [ebp - 0x3c]
push eax
call fcn.0045e1b0
add esp, 4
test ebx, ebx
jle 0x48a94c
lea ecx, [ebx - 1]
mov eax, 0xcccccccd
mul ecx
mov eax, edx
shr eax, 4
inc eax
mov dword [ebp - 4], eax
mov eax, 0x14
lea esp, [esp]
cmp ebx, 0x14
mov esi, ebx
push 0
cmovg esi, eax
call fcn.00483c40
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045dd90
push 0x14
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045df40
lea ecx, [edi - 0x3ff]
add esp, 0x18
add ecx, esi
test ecx, ecx
jle 0x48a8c8
mov eax, esi
sub eax, ecx
push eax
lea eax, [edi + 0x5863e0]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045df40
lea eax, [edi - 0x3ff]
add eax, esi
push eax
lea eax, [ebp - 0x3c]
push 0x5863e0
push eax
call fcn.0045df40
add esp, 0x18
jmp 0x48a8dc
push esi
lea eax, [edi + 0x5863e0]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045df40
add esp, 0xc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
call fcn.0045df40
push 8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045df40
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0045dce0
inc dword [ebp - 0xc]
add esp, 0x24
add dword [ebp + 8], esi
xor ecx, ecx
test esi, esi
jle 0x48a93b
jmp 0x48a920
mov al, byte [ebp + ecx - 0x24]
xor byte [edi + 0x5863e0], al
inc edi
xor eax, eax
cmp edi, 0x3ff
cmovge edi, eax
inc ecx
cmp ecx, esi
jl 0x48a920
sub ebx, 0x14
mov eax, 0x14
dec dword [ebp - 4]
jne 0x48a860
lea eax, [ebp - 0x3c]
push eax
call fcn.0045df50
mov ebx, dword [ebp + 0xc]
add esp, 4
pop edi
pop esi
test ebx, ebx
jne 0x48a977
push 0x137
push 0x539540
push 0x12
push 9
call fcn.0045c2c0
add esp, 0x10
movdqu xmm0, xmmword [ebp - 0x24]
mov eax, 0x5863cc
xor ecx, ecx
mov edx, 4
movdqu xmm1, xmmword [eax]
pxor xmm1, xmm0
movdqu xmmword [eax], xmm1
jmp 0x48a9a0
mov al, byte [ebp + ecx - 0x14]
lea ecx, [ecx + 1]
xor byte [ecx + 0x5863db], al
dec edx
jne 0x48a9a0
movsd xmm0, qword [0x5395f0]
movsd xmm1, qword [0x5863c0]
comisd xmm0, xmm1
jbe 0x48a9d3
addsd xmm1, qword [ebp + 0x10]
movsd qword [0x5863c0], xmm1
test ebx, ebx
jne 0x48a9ed
push 0x144
push 0x539540
push 0x12
push 0xa
call fcn.0045c2c0
add esp, 0x10
pop ebx
mov esp, ebp
pop ebp
ret