Function at 0x465420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4ea488]
push ebx
push esi
cmp eax, 1
push edi
jne 0x4654d2
mov eax, dword [0x4ea438]
mov ecx, dword [eax + 8]
call fcn.004507f0
mov ecx, dword [0x4ea484]
mov ebx, eax
call fcn.004507f0
test ebx, ebx
mov edi, eax
je 0x4654d2
test edi, edi
je 0x4654d2
mov ecx, dword [0x4ea484]
mov edx, 0x100
call fcn.0044c2b0
test eax, eax
mov dword [ebp - 4], eax
jne 0x46549a
push eax
push 0x492c40
push 0x558
push str.C:Genesis3DOpenSourceSourceBitmap_bitmap_blitdata.c
push 0x492c40
push 0xffffffffffffffff
call fcn.00446f60
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4ea438]
mov edx, eax
call fcn.0044c850
test eax, eax
jne 0x4654db
push eax
push 0x492c40
push 0x562
push str.C:Genesis3DOpenSourceSourceBitmap_bitmap_blitdata.c
push 0x492c40
push 0xffffffffffffffff
call fcn.00446f60
add esp, 0x18
lea ecx, [ebp - 4]
call fcn.0044c520
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4ea470]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x465503
mov edx, dword [eax + 0x1c]
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
push 0
call fcn.0044c900
test eax, eax
je case.default.0x465635
mov eax, dword [0x4ea470]
mov edx, dword [0x4ea444]
mov ecx, dword [edx + 0x18]
test ecx, ecx
mov ecx, dword [ebp - 4]
je 0x465555
xor esi, esi
cmp dword [ecx + 0xc], esi
jle 0x465555
lea edx, [ebp - 0x14]
push edx
mov edx, esi
call fcn.0044cb70
mov ecx, dword [0x4ea444]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ecx + 0x1c]
jne 0x465541
mov ecx, dword [ebp - 4]
xor eax, 1
push eax
mov edx, esi
call fcn.0044ca90
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jl 0x46551a
mov eax, dword [0x4ea470]
mov edx, dword [0x4ea444]
mov esi, dword [eax + 0x18]
test esi, esi
je 0x46557a
mov esi, dword [edx + 0x18]
test esi, esi
je 0x46557a
mov edx, dword [edx + 0x1c]
push edx
mov edx, dword [eax + 0x1c]
call fcn.0044ca90
test eax, eax
je case.default.0x465635
mov ecx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x465617
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x465617
mov eax, dword [0x4ea444]
mov edx, dword [eax + 0x18]
test edx, edx
je 0x465617
mov eax, dword [ecx + 0xc]
xor esi, esi
test eax, eax
jle 0x465617
mov ebx, 0x50
lea ecx, [ebp - 0x14]
mov edx, esi
push ecx
mov ecx, dword [0x4ea438]
call fcn.0044cb70
mov eax, dword [0x4ea470]
mov edx, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4655d8
cmp edx, dword [eax + 0x1c]
jne 0x4655d8
mov dword [ebp - 0xc], 0
jmp 0x4655fa
lea eax, [ebp - 0xc]
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push ecx
push eax
mov eax, dword [0x4ea438]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [eax + 8]
call fcn.00450720
cmp dword [ebp - 0xc], ebx
jge 0x46560e
mov ecx, dword [0x4ea444]
mov edx, dword [ecx + 0x1c]
mov ecx, dword [ebp - 4]
push edx
mov edx, esi
call fcn.0044ca90
mov eax, dword [ebp - 4]
inc esi
cmp esi, dword [eax + 0xc]
jl 0x4655aa
mov ecx, dword [0x4ea430]
mov dword [ebp - 8], ecx
mov ecx, dword [0x4ea484]
call fcn.00450820
dec eax
cmp eax, 3
ja case.default.0x465635
jmp dword [eax*4 + 0x46589c]
mov edx, dword [ebp - 4]
mov ebx, dword [0x4ea454]
mov ecx, dword [0x4ea480]
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0xc], ecx
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x465885
push ebp
mov ecx, dword [0x4ea450]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebp, dword [ebp - 0x14]
xor eax, eax
xor edx, edx
mov al, byte [esi]
mov dl, byte [ebp + eax]
mov byte [edi], dl
inc esi
inc edi
dec ecx
jne 0x465670
pop ebp
mov eax, dword [0x4ea450]
mov edx, dword [0x4ea47c]
mov esi, dword [ebp - 8]
mov ecx, dword [0x4ea45c]
add edx, eax
add ecx, eax
add esi, edx
mov edx, dword [ebp - 0xc]
add edx, ecx
dec ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edx
jne 0x46565c
lea ecx, [ebp - 4]
call fcn.0044c520
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov ebx, dword [0x4ea480]
mov dword [ebp - 0xc], ebx
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0x10], eax
mov eax, dword [0x4ea454]
test eax, eax
je 0x465885
mov dword [ebp - 0x14], eax
mov eax, dword [0x4ea450]
test al, 1
jne 0x46571d
push ebp
mov ecx, dword [0x4ea450]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebp, dword [ebp - 0x10]
xor eax, eax
movzx eax, byte [esi]
movzx eax, word [ebp + eax*2]
movzx edx, byte [esi + 1]
movzx edx, word [ebp + edx*2]
shl edx, 0x10
xor eax, edx
mov dword [edi], eax
add esi, 2
add edi, 4
sub ecx, 2
jne 0x4656f7
pop ebp
jmp 0x465744
push ebp
mov ecx, dword [0x4ea450]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebp, dword [ebp - 0x10]
xor eax, eax
xor edx, edx
movzx eax, byte [esi]
mov dx, word [ebp + eax*2]
mov word [edi], dx
inc esi
add edi, 2
dec ecx
jne 0x465731
pop ebp
mov eax, dword [0x4ea450]
mov ecx, dword [0x4ea47c]
mov edx, dword [ebp - 8]
add ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
mov edx, dword [0x4ea45c]
add edx, eax
dec ecx
mov dword [ebp - 0x14], ecx
lea ebx, [ebx + edx*2]
mov dword [ebp - 0xc], ebx
jne 0x4656e1
lea ecx, [ebp - 4]
call fcn.0044c520
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ebx, dword [0x4ea454]
mov edx, dword [0x4ea480]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0xc], edx
test ebx, ebx
mov dword [ebp - 0x14], ecx
je 0x465885
push ebp
mov ecx, dword [0x4ea450]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ebp, dword [ebp - 0x14]
xor eax, eax
xor edx, edx
movzx eax, byte [esi]
inc esi
imul eax, eax, 3
add eax, ebp
mov dl, byte [eax]
mov byte [edi], dl
inc edi
mov dl, byte [eax + 1]
mov byte [edi], dl
inc edi
mov dl, byte [eax + 2]
mov byte [edi], dl
inc edi
dec ecx
jne 0x4657bc
pop ebp
mov eax, dword [0x4ea450]
mov ecx, dword [0x4ea47c]
mov esi, dword [ebp - 8]
mov edx, dword [0x4ea45c]
add ecx, eax
add esi, ecx
lea ecx, [edx + eax*2]
add eax, ecx
mov ecx, dword [ebp - 0xc]
add ecx, eax
dec ebx
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], ecx
jne 0x4657a8
lea ecx, [ebp - 4]
call fcn.0044c520
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
mov ebx, dword [0x4ea480]
mov dword [ebp - 0x14], ebx
mov eax, dword [edx + 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4ea454]
test eax, eax
je 0x465885
mov dword [ebp - 0x10], eax
push ebp
mov ecx, dword [0x4ea450]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x14]
mov ebp, dword [ebp - 0xc]
xor eax, eax
mov al, byte [esi]
mov edx, dword [ebp + eax*4]
mov dword [edi], edx
inc esi
add edi, 4
dec ecx
jne 0x465849
pop ebp
mov eax, dword [0x4ea450]
mov ecx, dword [0x4ea47c]
mov edx, dword [ebp - 8]
add ecx, eax
add edx, ecx
mov dword [ebp - 8], edx
mov edx, dword [0x4ea45c]
add edx, eax
mov eax, dword [ebp - 0x10]
dec eax
lea ebx, [ebx + edx*4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ebx
jne 0x465837
lea ecx, [ebp - 4]
call fcn.0044c520
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret