Function at 0x401a19
Capabilities:
Encode data using xor

Disassembly:
jmp 0x410450
push 0xffffffffffffffff
push 0x482868
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x14], ebp
call fcn.004018e8
xor eax, eax
mov dword [esp + 0x54], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x5c]
mov cl, byte [eax + 8]
test cl, cl
je 0x4104d1
mov ecx, dword [str.DEFAULTVERSION]
mov edx, dword [0x49205c]
mov eax, dword [0x492060]
mov dword [esp + 0x2c], ecx
mov cx, word [0x492064]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov word [esp + 0x38], cx
jmp 0x410515
mov ecx, dword [eax + 4]
mov eax, dword [eax]
cmp ecx, 0x10
jge 0x4104f1
mov edx, ecx
mov esi, eax
lea edi, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x410515
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x2c], ecx
mov ecx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov dx, word [eax + 0xc]
mov al, byte [eax + 0xe]
mov dword [esp + 0x34], ecx
mov word [esp + 0x38], dx
mov byte [esp + 0x3a], al
sub esp, 0xc
mov ecx, esp
mov dword [esp + 0x68], esp
push str.SAVE__.LCS
push ecx
lea ecx, [ebx + 0x18]
call fcn.0040161d
lea ecx, [esp + 0x2c]
call fcn.004015f5
mov edx, dword [esp + 0x20]
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push edx
call dword [0x4b05f8]
mov ebp, eax
or esi, 0xffffffff
cmp ebp, esi
jne 0x41056c
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], esi
call fcn.00401b0e
mov al, 1
jmp 0x4107cc
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x44]
push 0x10
push ecx
push ebp
call dword [0x4b05a0]
test eax, eax
je 0x4107b6
cmp dword [esp + 0x10], 0x10
jne 0x4107b6
mov ecx, 4
lea edi, [esp + 0x3c]
lea esi, [esp + 0x2c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x4105cf
push ebp
call dword [0x4b0694]
push 0
push str.error
push 0x49206c
push 0
call dword [0x4b082c]
mov dword [esp + 0x54], 0xffffffff
jmp 0x4107c1
mov eax, dword [ebx + 0x44a4]
test eax, eax
jle 0x410669
lea esi, [eax*4]
push esi
call fcn.0043a962
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], edi
push 0
push eax
push esi
push edi
push ebp
call dword [0x4b05a0]
test eax, eax
je 0x410731
cmp esi, dword [esp + 0x10]
jne 0x410731
mov edx, dword [ebx + 0x44c4]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edx
push ebp
call dword [0x4b05a0]
test eax, eax
je 0x410731
cmp esi, dword [esp + 0x10]
jne 0x410731
mov ecx, dword [ebx + 0x44a4]
xor eax, eax
test ecx, ecx
jle 0x41066d
mov ecx, dword [ebx + 0x44c4]
mov edx, dword [edi + eax*4]
mov esi, dword [ecx + eax*4]
lea ecx, [ecx + eax*4]
xor esi, edx
inc eax
mov dword [ecx], esi
mov ecx, dword [ebx + 0x44a4]
cmp eax, ecx
jl 0x410649
jmp 0x41066d
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0x44a8]
test esi, esi
jle 0x410767
push esi
call fcn.0043a962
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push 0
push ecx
push esi
push eax
push ebp
call dword [0x4b05a0]
test eax, eax
je 0x410738
cmp esi, dword [esp + 0x10]
jne 0x410738
mov edx, dword [ebx + 0x44a8]
push edx
call fcn.0043a962
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
push ebp
call dword [0x4b05a0]
test eax, eax
je 0x41070f
cmp esi, dword [esp + 0x10]
jne 0x41070f
mov ecx, dword [ebx + 0x44a8]
xor eax, eax
test ecx, ecx
jle 0x41076b
mov esi, dword [esp + 0x14]
sub esi, edi
lea edx, [edi + eax]
mov cl, byte [esi + edx]
xor cl, byte [edx]
mov edx, dword [ebx + 0x44c8]
cmp cl, 1
sete cl
mov byte [edx + eax], cl
mov ecx, dword [ebx + 0x44a8]
inc eax
cmp eax, ecx
jl 0x4106eb
jmp 0x41076b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x410720
push eax
call fcn.0043a3ec
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x410731
push eax
call fcn.0043a3ec
add esp, 4
test edi, edi
je 0x410756
push edi
jmp 0x41074e
test edi, edi
je 0x410745
push edi
call fcn.0043a3ec
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x410756
push eax
call fcn.0043a3ec
add esp, 4
push ebp
call dword [0x4b0694]
mov dword [esp + 0x54], 0xffffffff
jmp 0x4107c1
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41077c
push eax
call fcn.0043a3ec
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41078d
push eax
call fcn.0043a3ec
add esp, 4
test edi, edi
je 0x41079a
push edi
call fcn.0043a3ec
add esp, 4
push ebp
call dword [0x4b0694]
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 0xffffffff
call fcn.00401b0e
mov al, 1
jmp 0x4107cc
push ebp
call dword [0x4b0694]
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x20]
call fcn.00401b0e
xor al, al
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x48
ret 4