Function at 0x41d650
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1124
call fcn.00457940
mov eax, dword [0x4811e8]
push ebx
push esi
push edi
mov ecx, 0xb
mov esi, str.1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik_9ol.0p____:__
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [esp + 0x112c], eax
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x57]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x41d697
sub eax, edx
mov dword [esp + 0x24], eax
mov ecx, 0xf
mov esi, str._E_nhanced__A_dventure__G_ame__L_anguage__S_ystem_E.A.G.L.S
lea edi, [esp + 0xa8]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0xe4]
push str.GlobalSave.sav
rep stosd dword es:[edi], eax
lea eax, [esp + 0x12c]
push str.Save_s
push eax
call fcn.00457a39
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x140]
push ecx
call dword [0x4741ec]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41d731
push 0x476030
call fcn.00408160
add esp, 4
push esi
call dword [0x4741f0]
xor eax, eax
mov ecx, dword [esp + 0x112c]
call fcn.00457925
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x4740dc]
push 0x1e8480
push 2
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x41d76c
push 0x476008
call fcn.00408160
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x112c]
call fcn.00457925
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1e8480
push 2
call ebx
test eax, eax
mov dword [esp + 0x20], eax
jne 0x41d79f
push 0x475fe0
call fcn.00408160
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x112c]
call fcn.00457925
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [0x4740d8]
call edi
mov edx, dword [esp + 0x20]
push edx
mov ebx, eax
call edi
push 0
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push 0x80
lea ecx, [esp + 0xb4]
push ecx
push esi
call dword [0x4740e0]
push 0x10afc8
push 0xc3e300
push ebx
call fcn.00401450
push 0x10afc8
push edi
push ebx
call fcn.00407ce0
add esp, 0x18
push 0
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x1c], eax
push 4
lea eax, [esp + 0x20]
push eax
push esi
call dword [0x4740e0]
call dword [0x47436c]
xor edx, edx
mov ecx, 0xff
div ecx
mov byte [esp + 0x13], dl
movsx edx, dl
push edx
call fcn.00457a0a
mov eax, dword [esp + 0x18]
add esp, 4
xor ebx, ebx
test eax, eax
jle 0x41d84f
nop
call fcn.00457a17
cdq
idiv dword [esp + 0x24]
mov cl, byte [ebx + edi]
mov al, byte [esp + edx + 0x28]
xor cl, al
mov byte [ebx + edi], cl
mov eax, dword [esp + 0x14]
inc ebx
cmp ebx, eax
jl 0x41d830
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
mov edi, dword [0x4740e0]
push esi
call edi
push 0
lea edx, [esp + 0x1c]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push esi
call edi
mov ecx, dword [esp + 0x1c]
mov edi, dword [0x4740d4]
push ecx
call edi
mov ebx, dword [esp + 0x20]
push ebx
call edi
mov edx, dword [esp + 0x1c]
mov edi, dword [0x4740d0]
push edx
call edi
push ebx
call edi
push esi
call dword [0x4741f0]
mov ecx, dword [esp + 0x112c]
mov eax, 1
call fcn.00457925
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret