Function at 0x50ee70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 1
push edi
call fcn.00507410
mov ecx, dword [ebp + 0xc]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x50ee9d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi + 0xe8]
mov dword [esp + 0x10], 0
test esi, esi
je 0x50eee4
mov eax, dword [esi + 4]
test eax, eax
je 0x50eed5
cmp dword [esi], 0
jne 0x50eed5
push eax
call fcn.004889e0
mov ebx, eax
lea edx, [esp + 0x14]
push ebx
push edx
call fcn.004894b0
add esp, 0xc
test ebx, ebx
je 0x50eeee
mov esi, dword [esi + 8]
test esi, esi
jne 0x50eeaf
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x50ef07
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.004888e0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esi]
push esi
shr ebx, 2
and ebx, 1
call fcn.004890b0
mov eax, dword [esi]
add esp, 4
mov ecx, eax
shr ecx, 2
and ecx, 1
cmp ecx, ebx
je 0x50ef39
mov edx, eax
and dl, 3
neg dl
sbb edx, edx
inc edx
xor edx, eax
and edx, 3
xor edx, eax
mov dword [esi], edx
mov esi, dword [esi + 0x34]
test esi, esi
jne 0x50ef07
mov eax, dword [esp + 0x10]
test eax, eax
je 0x50ef68
mov ecx, dword [eax]
mov edx, ecx
and dl, 3
neg dl
sbb edx, edx
inc edx
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [eax], edx
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x50ef48
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push eax
call fcn.0047f2c0
add esp, 8
test eax, eax
je 0x50ef86
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
test eax, eax
je 0x50efae
mov ecx, dword [eax]
mov edx, ecx
and dl, 3
neg dl
sbb edx, edx
inc edx
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [eax], edx
mov eax, dword [eax + 0x34]
test eax, eax
jne 0x50ef8e
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.00488ce0
mov ebx, eax
mov eax, dword [ebp + 0xc]
add esp, 8
test ebx, ebx
mov dword [eax], ebx
jne 0x50efce
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
mov dword [esp + 0x10], eax
je 0x50eff8
push eax
call fcn.00489500
mov ecx, dword [esp + 0x14]
lea esi, [esi + eax + 1]
add esp, 4
mov eax, dword [ecx + 0x34]
test eax, eax
mov dword [esp + 0x10], eax
jne 0x50efdc
lea edx, [esi + esi]
push 8
push edx
call fcn.00547150
mov ecx, dword [ebp + 0x14]
add esp, 8
test eax, eax
mov dword [ecx], eax
jne 0x50f01b
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
push ebx
call fcn.00547150
mov edx, dword [ebp + 0x10]
add esp, 8
test eax, eax
mov dword [edx], eax
jne 0x50f03b
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
xor ebx, ebx
test ecx, ecx
mov dword [esp + 0x10], ecx
je 0x50f183
xor esi, esi
jmp 0x50f055
mov esi, dword [esp + 0x18]
push ecx
call fcn.00489500
mov ecx, dword [ebp + 0x10]
add esp, 4
inc eax
add esi, 4
mov edx, dword [ecx]
mov dword [esp + 0x18], esi
mov dword [esi + edx - 4], eax
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
and eax, 3
dec al
neg al
sbb eax, eax
inc eax
mov dword [esp + 0x1c], eax
je 0x50f092
push ecx
call fcn.00488fe0
mov ecx, dword [esp + 0x14]
add esp, 4
mov eax, dword [ecx + 0xc]
mov esi, eax
test esi, esi
je 0x50f15b
cmp esi, eax
jne 0x50f0f4
mov ecx, dword [edi + 0x64]
mov edx, dword [edi + 0x60]
mov eax, dword [edi + 0x5c]
push ecx
mov ecx, dword [edi + 0x58]
push edx
mov edx, dword [esi + 0x14]
push eax
mov eax, dword [esi + 0x10]
push ecx
push edx
push eax
call fcn.0050f1a0
mov ecx, dword [ebp + 0x14]
inc ebx
mov edx, dword [ecx]
fstp qword [edx + ebx*8 - 8]
mov eax, dword [edi + 0x74]
mov ecx, dword [edi + 0x70]
mov edx, dword [edi + 0x6c]
push eax
mov eax, dword [edi + 0x68]
push ecx
mov ecx, dword [esi + 0x1c]
push edx
mov edx, dword [esi + 0x18]
push eax
push ecx
push edx
call fcn.0050f1a0
mov eax, dword [ebp + 0x14]
add esp, 0x30
inc ebx
mov ecx, dword [eax]
fstp qword [ecx + ebx*8 - 8]
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x60]
mov ecx, dword [edi + 0x5c]
push edx
mov edx, dword [edi + 0x58]
push eax
mov eax, dword [esi + 0x24]
push ecx
mov ecx, dword [esi + 0x20]
push edx
push eax
push ecx
call fcn.0050f1a0
mov edx, dword [ebp + 0x14]
inc ebx
mov eax, dword [edx]
fstp qword [eax + ebx*8 - 8]
mov ecx, dword [edi + 0x74]
mov edx, dword [edi + 0x70]
mov eax, dword [edi + 0x6c]
push ecx
mov ecx, dword [edi + 0x68]
push edx
mov edx, dword [esi + 0x2c]
push eax
mov eax, dword [esi + 0x28]
push ecx
push edx
push eax
call fcn.0050f1a0
mov ecx, dword [ebp + 0x14]
add esp, 0x30
inc ebx
mov edx, dword [ecx]
fstp qword [edx + ebx*8 - 8]
mov ecx, dword [esp + 0x10]
mov esi, dword [esi + 0xc]
mov eax, dword [ecx + 0xc]
cmp esi, eax
je 0x50f15b
test esi, esi
jne 0x50f09f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x50f170
push ecx
call fcn.00488fe0
mov ecx, dword [esp + 0x14]
add esp, 4
mov ecx, dword [ecx + 0x34]
test ecx, ecx
mov dword [esp + 0x10], ecx
jne 0x50f051
mov ecx, dword [esp + 0x14]
push ecx
call fcn.004888e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret