Function at 0x4bb400
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20010
call fcn.00631070
mov eax, dword [0x6e7024]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4bb675
test esi, esi
je 0x4bb675
mov eax, dword [ebp + 0x10]
cmp eax, 0xffff
jg 0x4bb675
test eax, eax
jns 0x4bb458
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bb446
sub ecx, edx
sar ecx, 1
mov dword [ebp + 0x10], ecx
push ebx
push 0
push 0
push 0
call fcn.0042f690
add esp, 0xc
movzx eax, ax
lea ecx, [ebp - 0x20008]
push ecx
mov dword [ebp - 0x20008], eax
mov eax, dword [edi]
push 2
push 0x6550b4
mov ecx, edi
call dword [eax + 0x40]
mov ebx, eax
test ebx, ebx
jns 0x4bb4c2
lea eax, [ebp - 0x20010]
push ebx
push eax
mov dword [ebp - 0x20010], str.CommonSaveControlSaveDataUtil.cpp
mov dword [ebp - 0x2000c], 0x21b
call fcn.0047c780
add esp, 8
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
lea ecx, [ebp - 0x20008]
push ecx
push 2
lea ecx, [ebp + 0x10]
push ecx
mov ecx, edi
call dword [eax + 0x40]
mov ebx, eax
test ebx, ebx
jns 0x4bb513
lea eax, [ebp - 0x20010]
push ebx
push eax
mov dword [ebp - 0x20010], str.CommonSaveControlSaveDataUtil.cpp
mov dword [ebp - 0x2000c], 0x223
call fcn.0047c780
add esp, 8
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20008]
mov byte [ebp - 0x20008], ah
mov byte [ebp - 0x20007], al
movzx eax, word [ebp - 0x20008]
push 2
lea ecx, [ebp - 0x20008]
mov dword [ebp - 0x20008], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x3c]
mov ebx, eax
test ebx, ebx
jns 0x4bb57f
lea eax, [ebp - 0x20010]
push ebx
push eax
mov dword [ebp - 0x20010], str.CommonSaveControlSaveDataUtil.cpp
mov dword [ebp - 0x2000c], 0x22c
call fcn.0047c780
add esp, 8
mov eax, ebx
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
call fcn.0042f690
movzx eax, ax
mov dword [ebp - 0x20008], eax
mov eax, dword [ebp + 0x10]
add esp, 0xc
lea ebx, [eax + eax]
xor edx, edx
mov dword [ebp + 0x10], ebx
test ebx, ebx
jle 0x4bb5c4
lea eax, [ebp - 0x20004]
sub esi, eax
lea ecx, [ecx]
lea ecx, [ebp - 0x20004]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor al, 0xf
mov byte [ecx], al
cmp edx, ebx
jl 0x4bb5b0
mov eax, dword [edi]
lea ecx, [ebp - 0x20008]
push ecx
push ebx
lea ecx, [ebp - 0x20004]
push ecx
mov ecx, edi
call dword [eax + 0x40]
mov esi, eax
test esi, esi
jns 0x4bb617
mov dword [ebp - 0x20010], str.CommonSaveControlSaveDataUtil.cpp
mov dword [ebp - 0x2000c], 0x240
lea eax, [ebp - 0x20010]
push esi
push eax
call fcn.0047c780
add esp, 8
mov eax, esi
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20008]
mov byte [ebp - 0x20008], ah
mov byte [ebp - 0x20007], al
movzx eax, word [ebp - 0x20008]
push 2
lea ecx, [ebp - 0x20008]
mov dword [ebp - 0x20008], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x3c]
mov esi, eax
test esi, esi
jns 0x4bb662
mov dword [ebp - 0x20010], str.CommonSaveControlSaveDataUtil.cpp
mov dword [ebp - 0x2000c], 0x249
jmp 0x4bb5f4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00630fec
mov esp, ebp
pop ebp
ret
push dword [0x648fa4]
lea eax, [ebp - 0x20010]
push 0
push eax
mov dword [ebp - 0x20010], str.CommonSaveControlSaveDataUtil.cpp
mov dword [ebp - 0x2000c], 0x20b
call fcn.00437d10
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
mov eax, 0x80070057
pop esi
call fcn.00630fec
mov esp, ebp
pop ebp
ret