Function at 0x420670
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x16d288
call fcn.0045d1f0
mov eax, dword [0x492794]
xor eax, esp
mov dword [esp + 0x16d284], eax
mov eax, dword [esp + 0x16d28c]
push ebx
push eax
push str.Save
lea ecx, [esp + 0x16c290]
push str.Save_s_d.sav
push ecx
call fcn.0045d367
add esp, 0x10
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
lea edx, [esp + 0x16c2a0]
push edx
call dword [0x47f088]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42093c
push esi
push edi
mov ecx, 0xb
mov esi, str.1qaz2wsx3edc4rfv5tgb6yhn7ujm8ik_9ol.0p____:__
lea edi, [esp + 0x16c190]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x51
lea eax, [esp + 0x16c1c3]
push 0
push eax
movsb byte es:[edi], byte [esi]
call fcn.0045d240
lea eax, [esp + 0x16c19c]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x420710
mov edi, dword [0x47f104]
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 0x42074d
push 0x1e8480
push 2
call edi
test eax, eax
mov dword [esp + 0x20], eax
jne 0x420774
push 0x4814f4
call fcn.00408d80
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x16d284]
xor ecx, esp
call fcn.0045d1d4
add esp, 0x16d288
ret
push ebp
push 0x1e8480
push 2
call edi
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x30], ebp
jne 0x4207b0
push 0x4814cc
call fcn.00408d80
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x16d284]
xor ecx, esp
call fcn.0045d1d4
add esp, 0x16d288
ret
push esi
mov esi, dword [0x47f100]
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 [0x47f0ac]
push 0
lea edx, [esp + 0x18]
push edx
mov ebp, eax
push 0x80
lea eax, [esp + 0x16c220]
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 [0x47f084]
movsx eax, byte [esp + 0x13]
push eax
call fcn.0045d2ba
xor esi, esi
add esp, 4
cmp dword [esp + 0x18], esi
jle 0x42087e
lea esp, [esp]
call fcn.0045d2c7
cdq
idiv dword [esp + 0x28]
add esi, 1
mov cl, byte [esp + edx + 0x16c194]
xor byte [esi + edi - 1], cl
cmp esi, dword [esp + 0x18]
jl 0x420860
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x4208a8
call fcn.0045d2c7
cdq
idiv dword [esp + 0x28]
mov eax, dword [esp + 0x20]
add esi, 1
mov dl, byte [esp + edx + 0x16c194]
xor byte [esi + eax - 1], dl
cmp esi, dword [esp + 0x1c]
jl 0x420886
mov eax, dword [esp + 0x18]
push eax
push edi
push ebp
call fcn.00404d10
push 0x16c160
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.00404d10
push 0x16c160
push ebp
push 0x52d870
call fcn.004014b0
mov ebp, dword [esp + 0x5c]
mov esi, dword [0x47f0fc]
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 [0x47f0f8]
push ebp
call esi
push edi
call esi
push ebx
call esi
lea ecx, [esp + 0x34]
push ecx
push 0x69a9d8
call fcn.0041fce0
push 0x69a9d8
push 0x103f990
call fcn.004215c0
add esp, 0x10
mov eax, 1
jmp 0x420797
mov ecx, dword [esp + 0x16d288]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045d1d4
add esp, 0x16d288
ret