Function at 0x4f96b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1a6c
call fcn.004a0d30
mov edi, dword [ebp + 0x10]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x17f8]
push 0x17e8
push 0xff
push eax
call fcn.004a3810
add esp, 0xc
mov eax, 0xcc
lea ecx, [ebp - 0x1990]
lea esi, [ecx + eax]
push eax
push 0
push ecx
call fcn.004a3810
add esp, 0xc
mov ebx, 0x44
push ebx
push edi
push esi
call fcn.004a3290
add esp, 0xc
lea eax, [edi + ebx]
lea ecx, [ebp - 0x1880]
push ebx
push eax
push ecx
call fcn.004a3290
add esp, 0xc
add edi, 0x88
lea eax, [ebp - 0x183c]
push ebx
push edi
push eax
call fcn.004a3290
add esp, 0xc
mov ebx, 2
mov eax, esi
lea edi, [eax + 0xcc]
test bl, 1
jne 0x4f976d
mov eax, ebx
shr eax, 1
imul eax, eax, 0xcc
add eax, ebp
add eax, 0xffffe670
push eax
push edi
push dword [ebp + 8]
call fcn.004f8440
add esp, 0xc
jmp 0x4f977b
push eax
push esi
push edi
push dword [ebp + 8]
call fcn.004f7970
add esp, 0x10
inc ebx
mov eax, edi
cmp ebx, 0x20
jne 0x4f9742
mov esi, dword [ebp + 8]
lea eax, [esi + 8]
push eax
call fcn.0043bcc0
add esp, 4
test eax, eax
je 0x4f99c5
mov ebx, eax
dec eax
mov edx, 0x88
lea ecx, [ebp - 0x1a5c]
add ecx, edx
mov dword [ebp - 0x1a74], ecx
mov ecx, dword [ebp + 0xc]
add edx, ecx
mov dword [ebp - 0x1a78], edx
add ecx, 0x44
mov dword [ebp - 0x1a70], ecx
xor edx, edx
inc edx
mov edi, ebx
mov dword [ebp - 0x1a6c], ebx
mov ecx, eax
test edx, edx
je 0x4f997c
imul eax, ecx, 0xcccccccd
cmp eax, 0x33333333
jbe 0x4f97f4
lea eax, [ecx - 1]
mov edi, ecx
cmp eax, ebx
jb 0x4f97cf
jmp 0x4f99c1
mov dword [ebp - 0x1a68], edx
mov dword [ebp - 0x1a64], ecx
mov eax, dword [esi + 0xc]
lea esi, [edi + 3]
mov ebx, esi
shr ebx, 5
xor ecx, ecx
mov edx, 0
mov dword [ebp - 0x1a60], eax
cmp ebx, eax
jae 0x4f982a
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + ebx*4]
xor edx, edx
bt eax, esi
setb dl
shl edx, 4
lea esi, [edi + 2]
mov eax, esi
shr eax, 5
cmp eax, dword [ebp - 0x1a60]
jae 0x4f984b
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
bt eax, esi
setb cl
shl ecx, 3
or ecx, edx
lea eax, [edi + 1]
mov esi, eax
shr esi, 5
xor ebx, ebx
mov edx, 0
cmp esi, dword [ebp - 0x1a60]
jae 0x4f9875
mov edx, dword [ebp + 0x14]
mov esi, dword [edx + esi*4]
xor edx, edx
bt esi, eax
setb dl
shl edx, 2
or edx, ecx
mov eax, edi
shr eax, 5
cmp eax, dword [ebp - 0x1a60]
jae 0x4f9895
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4]
xor ebx, ebx
bt eax, edi
setb bl
add ebx, ebx
or ebx, edx
mov edx, dword [ebp - 0x1a64]
mov eax, edx
shr eax, 5
xor edi, edi
mov ecx, 0
cmp eax, dword [ebp - 0x1a60]
lea esi, [ebp - 0x1a5c]
jae 0x4f98c7
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
bt eax, edx
setb cl
or ecx, ebx
mov dword [ebp - 0x1a60], ecx
push 0xcc
push 0
push esi
call fcn.004a3810
add esp, 0xc
not ebx
lea esi, [ebp - 0x1990]
mov eax, edi
xor eax, dword [ebp - 0x1a60]
dec eax
and eax, ebx
sar eax, 0x1f
lea ecx, [ebp - 0x1a5c]
push ecx
push esi
push eax
push ecx
push dword [ebp + 8]
call fcn.004f7130
add esp, 0x14
inc edi
add esi, 0xcc
cmp edi, 0x20
jne 0x4f98e7
cmp dword [ebp - 0x1a68], 0
je 0x4f99a7
mov esi, 0x44
push esi
lea eax, [ebp - 0x1a5c]
push eax
push dword [ebp + 0xc]
call fcn.004a3290
add esp, 0xc
push esi
lea eax, [ebp - 0x1a18]
push eax
push dword [ebp - 0x1a70]
call fcn.004a3290
add esp, 0xc
push esi
push dword [ebp - 0x1a74]
push dword [ebp - 0x1a78]
call fcn.004a3290
add esp, 0xc
mov esi, dword [ebp + 8]
mov ebx, dword [ebp - 0x1a6c]
mov ecx, dword [ebp - 0x1a64]
xor edx, edx
jmp 0x4f97e6
mov eax, dword [ebp + 0xc]
push eax
push eax
push esi
mov dword [ebp - 0x1a64], ecx
mov dword [ebp - 0x1a68], edx
call fcn.004f8440
mov edx, dword [ebp - 0x1a68]
mov ecx, dword [ebp - 0x1a64]
add esp, 0xc
jmp 0x4f97d9
lea eax, [ebp - 0x1a5c]
push eax
mov eax, dword [ebp + 0xc]
push eax
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.004f7970
add esp, 0x10
jmp 0x4f9969
test edx, edx
je 0x4f99d7
push 0xcc
push 0
push dword [ebp + 0xc]
call fcn.004a3810
add esp, 0xc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
add esp, 0x1a6c
pop esi
pop edi
pop ebx
pop ebp
ret