Function at 0x41f4e0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2094
call fcn.00454700
mov eax, dword [0x4894c8]
xor eax, esp
mov dword [esp + 0x2090], eax
mov eax, dword [str.EAGLS_SYSTEM]
mov ecx, dword [0x478750]
mov edx, dword [0x478754]
push ebx
mov ebx, dword [esp + 0x20a0]
push ebp
mov ebp, dword [esp + 0x20a0]
push esi
push edi
push 0x73
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], eax
mov al, byte [0x478758]
lea ecx, [esp + 0x31]
push 0
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x34], edx
mov byte [esp + 0x38], al
call fcn.00454750
lea eax, [esp + 0x2c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41f550
sub eax, edx
push 0x8a97e0
mov dword [esp + 0x18], eax
call fcn.00401040
add esp, 4
lea edx, [esp + 0xa0]
push edx
push 0xff
call dword [0x4771e8]
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41f590
sub eax, edx
cmp byte [esp + eax + 0x9f], 0x5c
je 0x41f5c3
lea edi, [esp + 0xa0]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x41f5b0
mov ax, word [0x4773ec]
mov word [edi], ax
lea eax, [esp + 0xa0]
add eax, 0xffffffff
lea ecx, [ecx]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x41f5d0
mov ecx, dword [str.Script_]
mov edx, dword [0x478f0c]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, ebp
mov esi, ebp
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41f5f0
lea edi, [esp + 0xa0]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x41f605
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x8000080
push 3
push 0
push 0
mov ecx, eax
push 0x80000000
lea eax, [esp + 0xb8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [0x4771dc]
mov esi, eax
cmp esi, 0xffffffff
je 0x41f6c8
mov ebp, dword [esp + 0x20b0]
mov edi, dword [0x477074]
mov edx, ebp
imul edx, edx, 0xe10
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xe10
add edx, 0x12f63c0
push edx
push esi
call edi
push 0
lea eax, [esp + 0x14]
push eax
push 0x7a120
push ebx
push esi
call edi
push esi
call dword [0x4771e0]
mov ecx, dword [esp + 0x10]
movsx edx, byte [ebx + ecx - 1]
push edx
call fcn.004547ca
xor esi, esi
add esp, 4
cmp dword [esp + 0x10], esi
jle 0x41f769
call fcn.004547d7
cdq
idiv dword [esp + 0x14]
add esi, 2
mov al, byte [esp + edx + 0x20]
xor byte [ebx + esi - 2], al
cmp esi, dword [esp + 0x10]
jl 0x41f6a8
jmp 0x41f769
lea ecx, [esp + 0x1c]
push ecx
push 0xac30c8
push ebp
mov eax, 0x44638
call fcn.00454700
mov ecx, 0x1118e
mov esi, 0x8a97f8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0041d170
mov edi, eax
add esp, 0x44644
cmp edi, 0xffffffff
je 0x41f7af
mov ebp, dword [esp + 0x20b0]
mov edx, ebp
imul edx, edx, 0xe10
push 0xe10
add edx, 0x12f63c0
push 0xac30c8
push edx
call fcn.004014b0
add edi, 0xfffff1f0
push edi
push 0xac3ed8
push ebx
call fcn.004014b0
movsx eax, byte [ebx + edi - 1]
push eax
call fcn.004547ca
add esp, 0x1c
xor esi, esi
test edi, edi
jle 0x41f769
lea esp, [esp]
call fcn.004547d7
cdq
idiv dword [esp + 0x14]
add esi, 2
mov cl, byte [esp + edx + 0x20]
xor byte [ebx + esi - 2], cl
cmp esi, edi
jl 0x41f750
push 0x8a97e0
call fcn.00401060
add esp, 4
cmp dword [0x12faa10], 1
jne 0x41f7a8
mov edx, dword [esp + 0x18]
push edx
push ebp
lea eax, [esp + 0x10a8]
push str._nThreadNo__02d_tScriptFile__s_n_n
push eax
call fcn.00454878
lea ecx, [esp + 0x10b0]
push ecx
push ebp
call fcn.004086d0
add esp, 0x18
mov eax, 1
jmp 0x41f7e0
push 0x8a97e0
call fcn.00401060
mov edx, dword [esp + 0x20b4]
push ebp
push edx
push 0x479590
push 0x6e3ff8
call fcn.00454878
push 0x6e3ff8
call fcn.004087e0
add esp, 0x18
xor eax, eax
mov ecx, dword [esp + 0x20a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004546e4
add esp, 0x2094
ret