Function at 0x420b70
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x2094
call fcn.0045d1f0
mov eax, dword [0x492794]
xor eax, esp
mov dword [esp + 0x2090], eax
mov eax, dword [str.EAGLS_SYSTEM]
mov ecx, dword [0x4807b8]
mov edx, dword [0x4807bc]
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 [0x4807c0]
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.0045d240
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 0x420be0
sub eax, edx
push 0x806b38
mov dword [esp + 0x18], eax
call fcn.00401040
add esp, 4
lea edx, [esp + 0xa0]
push edx
push 0xff
call dword [0x47f07c]
lea eax, [esp + 0xa0]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x420c20
sub eax, edx
cmp byte [esp + eax + 0x9f], 0x5c
je 0x420c53
lea edi, [esp + 0xa0]
add edi, 0xffffffff
nop
mov al, byte [edi + 1]
add edi, 1
test al, al
jne 0x420c40
mov ax, word [0x47f3fc]
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 0x420c60
mov ecx, dword [str.Script_]
mov edx, dword [0x480fa0]
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 0x420c80
lea edi, [esp + 0xa0]
sub eax, esi
add edi, 0xffffffff
mov cl, byte [edi + 1]
add edi, 1
test cl, cl
jne 0x420c95
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 [0x47f088]
mov esi, eax
cmp esi, 0xffffffff
je 0x420d58
mov ebp, dword [esp + 0x20b0]
mov edi, dword [0x47f0ac]
mov edx, ebp
imul edx, edx, 0x3138
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x3138
add edx, 0x1319c78
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 [0x47f084]
mov ecx, dword [esp + 0x10]
movsx edx, byte [ebx + ecx - 1]
push edx
call fcn.0045d2ba
xor esi, esi
add esp, 4
cmp dword [esp + 0x10], esi
jle 0x420df9
call fcn.0045d2c7
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 0x420d38
jmp 0x420df9
lea ecx, [esp + 0x1c]
push ecx
push 0x9f5c80
push ebp
mov eax, 0x63a98
call fcn.0045d1f0
mov ecx, 0x18ea6
mov esi, 0x806b50
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.0041e620
mov edi, eax
and eax, edx
add esp, 0x63aa4
cmp eax, 0xffffffff
je 0x420e3f
mov ebp, dword [esp + 0x20b0]
mov ecx, ebp
imul ecx, ecx, 0x3138
push 0x3138
add ecx, 0x1319c78
push 0x9f5c80
push ecx
call fcn.004014b0
add edi, 0xffffcec8
push edi
push 0x9f8db8
push ebx
call fcn.004014b0
movsx edx, byte [ebx + edi - 1]
push edx
call fcn.0045d2ba
add esp, 0x1c
xor esi, esi
test edi, edi
jle 0x420df9
mov edi, edi
call fcn.0045d2c7
cdq
idiv dword [esp + 0x14]
add esi, 2
mov al, byte [esp + edx + 0x20]
xor byte [ebx + esi - 2], al
cmp esi, edi
jl 0x420de0
push 0x806b38
call fcn.00401060
add esp, 4
cmp dword [0x13388a8], 1
jne 0x420e38
mov ecx, dword [esp + 0x18]
push ecx
push ebp
lea edx, [esp + 0x10a8]
push str._nThreadNo__02d_tScriptFile__s_n_n
push edx
call fcn.0045d367
lea eax, [esp + 0x10b0]
push eax
push ebp
call fcn.00408c70
add esp, 0x18
mov eax, 1
jmp 0x420e70
push 0x806b38
call fcn.00401060
mov ecx, dword [esp + 0x20b4]
push ebp
push ecx
push 0x481698
push 0x6999d8
call fcn.0045d367
push 0x6999d8
call fcn.00408d80
add esp, 0x18
xor eax, eax
mov ecx, dword [esp + 0x20a0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045d1d4
add esp, 0x2094
ret