Function at 0x42f1d0
Capabilities:
Encode data using xor
Set console window title

Disassembly:
sub esp, 0x200
push ebp
mov ebp, dword [esp + 0x208]
push ebp
push str.loadElfFile:__s_n
call fcn.00409cc0
push 7
push str.cdrom0:
push ebp
call fcn.0057de38
add esp, 0x14
test eax, eax
je 0x42f233
push 7
push str.cdrom1:
push ebp
call fcn.0057de38
add esp, 0xc
test eax, eax
je 0x42f233
mov eax, 0x263e280
mov ecx, ebp
call fcn.00408370
test eax, eax
je 0x42f22c
or eax, 0xffffffff
pop ebp
add esp, 0x200
ret
mov eax, dword [0x263e294]
jmp 0x42f253
call fcn.004afe90
lea eax, [ebp + 7]
push 0x263e2c0
push eax
call fcn.004afae0
add esp, 8
cmp eax, 0xffffffff
je 0x42f221
mov eax, dword [0x263e2c4]
push eax
push str.loadElfFile:__d_n
mov dword [0x263e354], eax
call fcn.00409cc0
mov ecx, dword [0x263e354]
push ecx
call fcn.00563191
add esp, 0xc
test eax, eax
mov dword [0x263e2bc], eax
je 0x42f221
mov edx, dword [0x263e354]
push edx
push 0
push eax
push ebp
call fcn.0042e210
push ebp
mov dword [0x263e2b0], 0xffffffff
call fcn.0042e2f0
mov eax, dword [0x263e264]
mov ecx, dword [eax + 0x18]
push ebp
mov dword [0x6029c8], ecx
call fcn.0042e780
push ebp
call fcn.0042eb20
mov eax, dword [0x263cffc]
add esp, 0x1c
and eax, 0x20
je 0x42f2d2
mov word [0x263d008], 7
mov byte [0x263cfe0], 0x45
test eax, eax
je 0x42f2ea
mov edx, dword [0x6029c8]
push edx
push str.PC_set_to:__8.8lx_n
call fcn.00472b80
add esp, 8
push ebx
push esi
push edi
push ebp
mov dword [0x6028f0], 0x81f00000
mov dword [0x6028e0], 0x81f80000
call fcn.0042e020
add esp, 4
mov dword [0x602760], eax
xor ebx, ebx
mov edx, dword [0x263e8a0]
mov eax, ebx
shr eax, 0xc
mov eax, dword [edx + eax*4]
mov ecx, ebx
and ecx, 0xfff
lea edx, [eax + ecx]
mov edi, edx
mov esi, str.rom0:OSDSYS
mov ecx, 0xc
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x42f362
mov ecx, ebp
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x42f340
push ebp
push str.rom0:OSDSYS
push ebx
push str.addr__x___s_______s__n
call fcn.00409cc0
add esp, 0x10
add ebx, 1
cmp ebx, 0x100000
jb 0x42f311
mov ecx, dword [0x263e354]
xor eax, eax
xor esi, esi
shr ecx, 2
je 0x42f38c
mov edx, dword [0x263e2bc]
xor esi, dword [edx + eax*4]
add eax, 1
cmp eax, ecx
jb 0x42f382
push esi
push ebp
push str.loadElfFile:__s__CRC___8.8X_n
mov dword [0x263e268], esi
call fcn.00409cc0
add esp, 0xc
cmp dword [0x263de34], 0
je 0x42f428
push esi
lea ecx, [esp + 0x14]
push str._8.8x
push ecx
call fcn.00563254
push esi
lea edx, [esp + 0x120]
push str.patches_not_found_cant_apply_patches_crc_8.8x
push edx
call fcn.00563254
add esp, 0x18
cmp dword [0x264d3cc], 0
je 0x42f3e7
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea ecx, [esp + 0x10]
push ecx
call fcn.0047b990
add esp, 4
test eax, eax
je 0x42f411
push str.XML_Loader_returned_an_error._Trying_to_load_a_pnach..._n
call fcn.00409cc0
lea edx, [esp + 0x14]
push edx
call fcn.004741d0
add esp, 8
jmp 0x42f41e
push str.XML_Loading_success._Will_not_load_from_pnach..._n
call fcn.00409cc0
add esp, 4
push 0
call fcn.00473d20
add esp, 4
mov eax, dword [0x263e2bc]
push eax
call fcn.005632cf
add esp, 4
call fcn.0042f090
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
add esp, 0x200
ret