Function at 0x420390
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x158750
call fcn.0045a570
mov eax, dword [0x48f4c8]
xor eax, esp
mov dword [esp + 0x15874c], eax
mov eax, dword [esp + 0x158754]
cmp eax, 0x64
jl 0x4203cc
add eax, 0xffffff9c
push eax
push str.Save
push str.SaveAuto_s_d.sav
lea eax, [esp + 0x157758]
push eax
jmp 0x4203df
push eax
push str.Save
push str.Save_s_03d.sav
lea ecx, [esp + 0x157758]
push ecx
call fcn.0045a6e7
add esp, 0x10
push ebx
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x157768]
push edx
call dword [0x47d1f4]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42067c
push esi
push edi
mov ecx, 0xb
mov esi, str.1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik_9ol.0p____:__
lea edi, [esp + 0x157658]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x51
lea eax, [esp + 0x15768b]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.0045a5c0
lea eax, [esp + 0x157664]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x420450
mov edi, dword [0x47d0c8]
push 0x1e8480
sub eax, edx
push 2
mov dword [esp + 0x2c], eax
mov byte [esp + 0x17], cl
call edi
mov esi, eax
test esi, esi
mov dword [esp + 0x28], esi
je 0x42048d
push 0x1e8480
push 2
call edi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4204b4
push 0x47f460
call fcn.00408cb0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x15874c]
xor ecx, esp
call fcn.0045a554
add esp, 0x158750
ret
push ebp
push 0x1e8480
push 2
call edi
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
jne 0x4204f0
push 0x47f438
call fcn.00408cb0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x15874c]
xor ecx, esp
call fcn.0045a554
add esp, 0x158750
ret
push esi
mov esi, dword [0x47d0c4]
call esi
mov ecx, dword [esp + 0x24]
push ecx
mov edi, eax
call esi
push ebp
mov dword [esp + 0x24], eax
call esi
mov esi, dword [0x47d1c4]
push 0
lea edx, [esp + 0x18]
push edx
mov ebp, eax
push 0x80
lea eax, [esp + 0x1576e8]
push eax
push ebx
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [esp + 0x24]
push edx
push ebx
call esi
push 0
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x28]
push ecx
push ebx
call esi
mov eax, dword [esp + 0x18]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push edi
push ebx
call esi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push eax
push ebx
call esi
push 0
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [esp + 0x1f]
push edx
push ebx
call esi
push ebx
call dword [0x47d1f8]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045a63a
xor esi, esi
add esp, 4
cmp dword [esp + 0x18], esi
jle 0x4205be
lea esp, [esp]
call fcn.0045a647
cdq
idiv dword [esp + 0x28]
add esi, 1
mov cl, byte [esp + edx + 0x15765c]
xor byte [esi + edi - 1], cl
cmp esi, dword [esp + 0x18]
jl 0x4205a0
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x4205e8
call fcn.0045a647
cdq
idiv dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esi, 1
mov dl, byte [esp + edx + 0x15765c]
xor byte [esi + eax - 1], dl
cmp esi, dword [esp + 0x1c]
jl 0x4205c6
mov eax, dword [esp + 0x18]
push eax
push edi
push ebp
call fcn.00404cc0
push 0x157628
lea ecx, [esp + 0x44]
push ebp
push ecx
call fcn.004014b0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
push edx
push eax
push ebp
call fcn.00404cc0
push 0x157628
push ebp
push 0x551998
call fcn.004014b0
mov ebp, dword [esp + 0x5c]
mov esi, dword [0x47d0c0]
add esp, 0x30
push ebp
call esi
mov edi, dword [esp + 0x30]
push edi
call esi
mov ebx, dword [esp + 0x24]
push ebx
call esi
mov esi, dword [0x47d0bc]
push ebp
call esi
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x34]
push ecx
push 0x6a9fd8
call fcn.0041f690
push 0x6a9fd8
push 0xdb48b8
call fcn.00421300
add esp, 0x10
mov eax, 1
jmp 0x4204d7
mov ecx, dword [esp + 0x158750]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045a554
add esp, 0x158750
ret