Function at 0x423e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x58bea8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xac], eax
mov eax, dword [str.PSX2]
push esi
xor esi, esi
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
mov dword [ebp - 0xa8], ecx
mov cl, byte [0x549274]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xa4], esi
mov byte [ebp - 8], cl
cmp eax, esi
je 0x423eef
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [ebx], esi
mov eax, dword [ebx + 0x6c]
cmp eax, esi
je 0x423f00
push eax
call dword [0x547228]
mov dword [ebx + 0x6c], esi
mov eax, dword [ebp + 0x18]
add eax, 0xfffffff6
cmp eax, 0x1e
ja case.0x423f12.15
movzx ecx, byte [eax + 0x424230]
jmp dword [ecx*4 + 0x42420c]
push str.ps_1_0
lea edx, [ebp - 0x1c]
push edx
jmp 0x423f6b
push str.ps_1_1
lea eax, [ebp - 0x1c]
push eax
jmp 0x423f6b
push str.ps_1_2
jmp 0x423f67
push str.ps_1_3
lea edx, [ebp - 0x1c]
push edx
jmp 0x423f6b
push str.ps_1_4
lea eax, [ebp - 0x1c]
push eax
jmp 0x423f6b
push 0x549240
lea edx, [ebp - 0x1c]
push edx
jmp 0x423f6b
push str.ps_4_0
lea eax, [ebp - 0x1c]
push eax
jmp 0x423f6b
push 0x549230
lea ecx, [ebp - 0x1c]
push ecx
call dword [0x547218]
mov edx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [0x547218]
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x9c]
push edx
mov ecx, edi
call fcn.00423b50
mov esi, eax
test esi, esi
jne 0x423fd9
push 0x2e
lea eax, [ebp - 0x9c]
push eax
call fcn.00406c50
push 0x54922c
push eax
call dword [0x547218]
lea ecx, [ebp - 0xa0]
push ecx
lea edx, [ebp - 0x9c]
push edx
mov ecx, edi
call fcn.00423b50
mov esi, eax
test esi, esi
je 0x4240ba
push 0x2e
lea eax, [ebp - 0x9c]
push eax
call fcn.00406c50
xor edi, edi
mov dword [ebp - 0xa8], eax
test eax, eax
je 0x4240d7
push 0x549228
push eax
call fcn.00406cd0
test eax, eax
je 0x42400b
mov edi, 1
mov ecx, dword [ebp - 0xa8]
push 0x549224
push ecx
call fcn.00406cd0
test eax, eax
je 0x4240cf
mov edi, 2
dec edi
je 0x42417a
dec edi
jne 0x4241bd
lea eax, [ebp - 0xc]
push eax
call dword [0x54721c]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xa0]
xor ecx, ecx
test eax, eax
je 0x424072
mov dl, byte [ebp + edi - 0xc]
xor byte [ecx + esi], dl
lea eax, [edi + 1]
xor edx, edx
div dword [ebp - 0xa8]
mov eax, dword [ebp - 0xa0]
inc ecx
mov edi, edx
cmp ecx, eax
jb 0x424053
push eax
push 0
call dword [0x547224]
mov ecx, dword [ebp - 0xa0]
push ecx
push esi
push eax
mov dword [ebx + 0x6c], eax
call fcn.0052c3c0
mov ecx, dword [ebp - 0xac]
add esp, 0xc
call fcn.00418ab0
mov edx, dword [eax]
push ebx
push esi
push eax
mov eax, dword [edx + 0x1a8]
call eax
test eax, eax
je 0x4241bd
test esi, esi
je 0x4240ba
push esi
call dword [0x547228]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b2eb
mov esp, ebp
pop ebp
ret 0x18
test edi, edi
jne 0x424029
mov ecx, dword [ebp - 0xb0]
push 0
push 0
lea edx, [ebp - 0xa4]
push edx
mov edx, dword [ebp - 0xa0]
push 1
lea eax, [ebp - 0x1c]
push eax
push ecx
push 0
push 0
push edx
push esi
call fcn.0048f2a5
test eax, eax
jne 0x4240af
test esi, esi
je 0x42410f
push esi
call dword [0x547228]
mov ecx, dword [ebp - 0xac]
call fcn.00418ab0
mov edi, eax
mov eax, dword [ebp - 0xa4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov esi, dword [edi]
push ebx
push eax
call edx
push eax
mov eax, dword [esi + 0x1a8]
push edi
call eax
test eax, eax
mov eax, dword [ebp - 0xa4]
je 0x424162
test eax, eax
je 0x42414d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052b2eb
mov esp, ebp
pop ebp
ret 0x18
test eax, eax
je 0x4241c8
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0xa4], 0
jmp 0x4241c8
mov ecx, dword [ebp - 0xa0]
push ecx
push 0
call dword [0x547224]
mov edx, dword [ebp - 0xa0]
push edx
push esi
push eax
mov dword [ebx + 0x6c], eax
call fcn.0052c3c0
mov ecx, dword [ebp - 0xac]
add esp, 0xc
call fcn.00418ab0
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1a8]
push ebx
push esi
push eax
call edx
test eax, eax
jne 0x4240af
test esi, esi
je 0x4241c8
push esi
call dword [0x547228]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0xb0]
mov ecx, dword [ebp + 0x1c]
mov esi, dword [0x547218]
mov dword [ebx + 0x64], eax
push edx
lea eax, [ebx + 0x24]
push eax
mov dword [ebx + 0x68], ecx
call esi
lea ecx, [ebp - 0x9c]
push ecx
add ebx, 0x44
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0052b2eb
mov esp, ebp
pop ebp
ret 0x18