Function at 0x41df30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1124
call fcn.0045c960
mov eax, dword [0x48eb38]
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 0x41df77
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.0045cab0
add esp, 0xc
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea ecx, [esp + 0x140]
push ecx
call dword [0x4791ec]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e011
push 0x47b3c0
call fcn.00408840
add esp, 4
push esi
call dword [0x4791f0]
xor eax, eax
mov ecx, dword [esp + 0x112c]
call fcn.0045c945
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x4790dc]
push 0x1e8480
push 2
call ebx
mov edi, eax
test edi, edi
mov dword [esp + 0x1c], edi
jne 0x41e04c
push 0x47b398
call fcn.00408840
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x112c]
call fcn.0045c945
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 0x41e07f
push 0x47b370
call fcn.00408840
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x112c]
call fcn.0045c945
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [0x4790d8]
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 [0x4790e0]
push 0x10afc8
push 0xc4cf00
push ebx
call fcn.00401450
push 0x10afc8
push edi
push ebx
call fcn.004083c0
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 [0x4790e0]
call dword [0x47937c]
xor edx, edx
mov ecx, 0xff
div ecx
mov byte [esp + 0x13], dl
movsx edx, dl
push edx
call fcn.0045ca2a
mov eax, dword [esp + 0x18]
add esp, 4
xor ebx, ebx
test eax, eax
jle 0x41e12f
nop
call fcn.0045ca37
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 0x41e110
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
push edi
mov edi, dword [0x4790e0]
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 [0x4790d4]
push ecx
call edi
mov ebx, dword [esp + 0x20]
push ebx
call edi
mov edx, dword [esp + 0x1c]
mov edi, dword [0x4790d0]
push edx
call edi
push ebx
call edi
push esi
call dword [0x4791f0]
mov ecx, dword [esp + 0x112c]
mov eax, 1
call fcn.0045c945
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret