Function at 0x418fc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x228
push ebx
push esi
push edi
call fcn.00418bc0
mov ecx, 0xb
mov esi, 0x45e2e8
lea edi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0x14
lea edi, [esp + 0x63]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x24], ecx
mov ecx, 0xf
mov esi, str._E_nhanced__A_dventure__G_ame__L_anguage__S_ystem_E.A.G.L.S
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [0x45a0a0]
mov ecx, 0x11
lea edi, [esp + 0xf0]
push 0x631dc0
rep stosd dword es:[edi], eax
call esi
push 0x713a00
call esi
mov eax, dword [esp + 0x238]
push eax
push 0x45e354
lea ecx, [esp + 0x13c]
push 0x45e35c
push ecx
call fcn.0043fa31
add esp, 0x10
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
lea edx, [esp + 0x14c]
push edx
call dword [0x45a074]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41909f
push 0x45e370
call fcn.00405210
add esp, 4
push ebx
call dword [0x45a0c8]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x228
ret
mov edi, dword [0x45a090]
push 0x1312d00
push 2
call edi
mov esi, eax
test esi, esi
mov dword [esp + 0x28], esi
jne 0x4190d1
push 0x45e3c8
call fcn.00405210
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x228
ret
push 0x1312d00
push 2
call edi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4190fb
push 0x45e3f0
call fcn.00405210
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x228
ret
push 0x1312d00
push 2
call edi
mov edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
jne 0x419127
push 0x45e418
call fcn.00405210
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x228
ret
push ebp
push esi
mov esi, dword [0x45a08c]
call esi
mov ebp, eax
mov eax, dword [esp + 0x24]
push eax
call esi
push edi
mov dword [esp + 0x24], eax
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x80
lea edx, [esp + 0xc4]
push edx
push ebx
mov dword [esp + 0x48], eax
call dword [0x45a078]
mov eax, dword [esp + 0x20]
push 0x67b18
push eax
mov ecx, 0x19ec6
mov esi, 0x713a00
mov edi, ebp
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.00404f30
add esp, 0xc
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push ebx
mov dword [esp + 0x2c], eax
call dword [0x45a078]
mov ecx, 0x19ec6
mov esi, 0x77b640
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x34]
push 0x67b18
push edi
push ebp
call fcn.00404f30
mov ebp, dword [0x45a078]
add esp, 0xc
push 0
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push ebx
call ebp
call dword [0x45a2dc]
xor edx, edx
mov ecx, 0xff
div ecx
mov byte [esp + 0x13], dl
movsx edx, dl
push edx
call fcn.0043f9b2
mov eax, dword [esp + 0x1c]
add esp, 4
xor esi, esi
test eax, eax
jle 0x41921e
nop
call fcn.0043f9bf
cdq
idiv dword [esp + 0x28]
mov eax, dword [esp + 0x20]
mov cl, byte [esp + edx + 0x38]
xor byte [esi + eax], cl
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x419200
mov eax, dword [esp + 0x1c]
xor esi, esi
test eax, eax
jle 0x419247
call fcn.0043f9bf
cdq
idiv dword [esp + 0x28]
mov al, byte [esi + edi]
mov dl, byte [esp + edx + 0x38]
xor al, dl
mov byte [esi + edi], al
mov eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x419228
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edx
push ebx
call ebp
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x18]
push eax
push ecx
push edi
push ebx
call ebp
push 0
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [esp + 0x1f]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x2c]
mov esi, dword [0x45a0cc]
push ecx
call esi
mov ebp, dword [esp + 0x24]
push ebp
call esi
mov edi, dword [esp + 0x30]
push edi
call esi
mov edx, dword [esp + 0x2c]
mov esi, dword [0x45a0c0]
push edx
call esi
push ebp
call esi
push edi
call esi
push ebx
call dword [0x45a0c8]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x228
ret