Function at 0x4030c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1118
call fcn.0041e000
push ebx
push ebp
push esi
push edi
push 0
push 0x4bfbe0
push str.KDERB.EXP
mov dword [esp + 0x24], 0x4bfbe0
call fcn.004020f0
add esp, 0xc
test eax, eax
jne 0x403127
push str.KDERB.EXP
lea eax, [esp + 0x2c]
push str.Can_Not_Open__s_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [esp + 0x28]
push 0x10
push str.WARNING
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1118
ret
xor ecx, ecx
test eax, eax
jle 0x40313e
mov edx, dword [esp + 0x18]
mov bl, byte [ecx + edx]
xor bl, cl
mov byte [ecx + edx], bl
inc ecx
cmp ecx, eax
jl 0x40312d
lea edx, [esp + 0x18]
push 0x47b940
push edx
call fcn.00401df0
add esp, 8
test eax, eax
jne 0x40315f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
lea eax, [esp + 0x18]
push 0x46b920
push eax
call fcn.00401df0
add esp, 8
test eax, eax
jne 0x403180
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
lea ecx, [esp + 0x18]
push 0x45b900
push ecx
call fcn.00401df0
add esp, 8
test eax, eax
jne 0x4031a1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
lea edx, [esp + 0x18]
push 0x49e920
push edx
call fcn.00401df0
add esp, 8
test eax, eax
jne 0x4031c2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
lea eax, [esp + 0x18]
push 0x43b840
push eax
call fcn.00401df0
add esp, 8
test eax, eax
jne 0x4031e3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
lea ecx, [esp + 0x928]
lea edx, [esp + 0x18]
push ecx
push edx
call fcn.00401df0
add esp, 8
test eax, eax
jne 0x403207
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
push 0x49d500
push 0x4bfb9c
push 0
call fcn.004029c0
add esp, 0xc
test eax, eax
jne 0x40322a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1118
ret
mov eax, dword [0x4bfb9c]
push 0xf8
push eax
call fcn.00401e90
add esp, 8
xor ecx, ecx
lea edx, [esp + 0x128]
mov eax, ecx
and eax, 0x7f
test cl, 0x80
je 0x403253
or ah, 1
test ch, 1
je 0x40325a
or al, 0x80
mov eax, dword [esp + eax*4 + 0x928]
inc ecx
mov dword [edx], eax
add edx, 4
cmp ecx, 0x200
jl 0x403246
push 0x48c860
call fcn.00402a10
add esp, 4
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0x49d240
xor ebx, ebx
mov dword [esp + 0x1c], 0x48c871
cmp ebx, 0x200
jl 0x4032aa
cmp ebx, 0x400
jl 0x403360
mov eax, dword [esp + 0x1c]
mov ebp, 0x48c861
xor edi, edi
cmp eax, ebp
jle 0x403301
xor esi, esi
lea ecx, [esp + ebx + 0x129]
mov eax, ebp
mov dl, byte [ecx - 1]
cmp dl, byte [eax - 1]
jne 0x4032e8
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4032e8
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4032e8
inc esi
add eax, 4
add ecx, 4
cmp esi, 4
jge 0x4032fb
jmp 0x4032c4
cmp esi, 4
jge 0x4032fb
mov eax, dword [esp + 0x10]
inc edi
add ebp, 0x10
cmp edi, eax
jge 0x403301
jmp 0x4032b9
cmp edi, dword [esp + 0x10]
jl 0x403343
mov eax, dword [esp + 0x1c]
lea ecx, [esp + ebx + 0x129]
mov esi, 4
mov dl, byte [ecx - 1]
add ecx, 4
mov byte [eax - 1], dl
mov dl, byte [ecx - 4]
mov byte [eax], dl
mov dl, byte [ecx - 3]
mov byte [eax + 1], dl
add eax, 4
dec esi
jne 0x403311
mov edx, dword [esp + 0x10]
mov dword [esp + 0x1c], eax
inc edx
cmp eax, 0x48cc61
mov dword [esp + 0x10], edx
jg 0x4034ae
mov eax, edi
and eax, 0x3f
shl edi, 8
or edi, eax
shl edi, 8
or edi, eax
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x14]
shl edi, 2
mov dword [eax], edi
mov ecx, dword [esp + 0x14]
add ebx, 0x10
add ecx, 4
cmp ebx, 0x800
mov dword [esp + 0x14], ecx
jl 0x403296
mov eax, dword [esp + 0x10]
xor ebx, ebx
mov cl, al
mov dword [esp + 0x14], ebx
shl cl, 2
shl eax, 4
mov byte [0x49d4da], cl
mov dword [esp + 0x20], 0x49d2c0
lea edx, [eax + 0x48c861]
mov ebp, 0x200
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edx
jmp 0x4033b3
mov edx, dword [esp + 0x24]
xor eax, eax
test ebx, ebx
jle 0x403403
xor edi, edi
lea esi, [esp + ebp + 0x129]
mov ecx, edx
mov bl, byte [esi - 1]
cmp bl, byte [ecx - 1]
jne 0x4033e8
mov bl, byte [esi]
cmp bl, byte [ecx]
jne 0x4033e8
mov bl, byte [esi + 1]
cmp bl, byte [ecx + 1]
jne 0x4033e8
inc edi
add ecx, 4
add esi, 4
cmp edi, 4
jge 0x4033fb
jmp 0x4033c4
cmp edi, 4
jge 0x4033fb
mov ebx, dword [esp + 0x14]
inc eax
add edx, 0x10
cmp eax, ebx
jge 0x403403
jmp 0x4033b9
mov ebx, dword [esp + 0x14]
cmp eax, ebx
jl 0x403442
mov ecx, dword [esp + 0x1c]
lea esi, [esp + ebp + 0x129]
mov edi, 4
mov dl, byte [esi - 1]
add esi, 4
mov byte [ecx - 1], dl
mov dl, byte [esi - 4]
mov byte [ecx], dl
mov dl, byte [esi - 3]
mov byte [ecx + 1], dl
add ecx, 4
dec edi
jne 0x403413
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
inc ebx
mov dword [esp + 0x14], ebx
lea edx, [ebx + ecx]
cmp edx, 0x40
jg 0x4034ae
mov esi, dword [esp + 0x10]
add ebp, 0x10
add eax, esi
mov ecx, eax
and ecx, 0x3f
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
shl eax, 8
or eax, ecx
mov ecx, dword [esp + 0x20]
shl eax, 2
mov dword [ecx], eax
add ecx, 4
cmp ebp, 0x400
mov dword [esp + 0x20], ecx
jl 0x4033af
push 0x800
push 0
call fcn.004021a0
add esp, 8
test eax, eax
jne 0x4034cf
push 0x10
push str.WARNING
push str.I_O_Card_RAM_Error
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1118
ret
push 0x10
push str.WARNING
push str.Too_Many_Palette_Blocks
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1118
ret
call fcn.00404150
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1118
ret