Function at 0x401a00
Capabilities:
Encode data using xor

Disassembly:
jmp 0x410420
push 0xffffffffffffffff
push 0x4807f8
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.004018ca
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 0x4104a1
mov ecx, dword [str.DEFAULTVERSION]
mov edx, dword [0x49000c]
mov eax, dword [0x490010]
mov dword [esp + 0x2c], ecx
mov cx, word [0x490014]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov word [esp + 0x38], cx
jmp 0x4104e5
mov ecx, dword [eax + 4]
mov eax, dword [eax]
cmp ecx, 0x10
jge 0x4104c1
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 0x4104e5
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.0040160e
lea ecx, [esp + 0x2c]
call fcn.004015e6
mov edx, dword [esp + 0x20]
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push edx
call dword [0x4a9694]
mov ebp, eax
or esi, 0xffffffff
cmp ebp, esi
jne 0x41053c
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], esi
call fcn.00401ae6
mov al, 1
jmp 0x41079c
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x44]
push 0x10
push ecx
push ebp
call dword [0x4a95a4]
test eax, eax
je 0x410786
cmp dword [esp + 0x10], 0x10
jne 0x410786
mov ecx, 4
lea edi, [esp + 0x3c]
lea esi, [esp + 0x2c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x41059f
push ebp
call dword [0x4a95ec]
push 0
push str.error
push 0x49001c
push 0
call dword [0x4a97ec]
mov dword [esp + 0x54], 0xffffffff
jmp 0x410791
mov eax, dword [ebx + 0x2964]
test eax, eax
jle 0x410639
lea esi, [eax*4]
push esi
call fcn.004388c2
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 [0x4a95a4]
test eax, eax
je 0x410701
cmp esi, dword [esp + 0x10]
jne 0x410701
mov edx, dword [ebx + 0x2984]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edx
push ebp
call dword [0x4a95a4]
test eax, eax
je 0x410701
cmp esi, dword [esp + 0x10]
jne 0x410701
mov ecx, dword [ebx + 0x2964]
xor eax, eax
test ecx, ecx
jle 0x41063d
mov ecx, dword [ebx + 0x2984]
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 + 0x2964]
cmp eax, ecx
jl 0x410619
jmp 0x41063d
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0x2968]
test esi, esi
jle 0x410737
push esi
call fcn.004388c2
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push 0
push ecx
push esi
push eax
push ebp
call dword [0x4a95a4]
test eax, eax
je 0x410708
cmp esi, dword [esp + 0x10]
jne 0x410708
mov edx, dword [ebx + 0x2968]
push edx
call fcn.004388c2
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
push ebp
call dword [0x4a95a4]
test eax, eax
je 0x4106df
cmp esi, dword [esp + 0x10]
jne 0x4106df
mov ecx, dword [ebx + 0x2968]
xor eax, eax
test ecx, ecx
jle 0x41073b
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 + 0x2988]
cmp cl, 1
sete cl
mov byte [edx + eax], cl
mov ecx, dword [ebx + 0x2968]
inc eax
cmp eax, ecx
jl 0x4106bb
jmp 0x41073b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4106f0
push eax
call fcn.0043834c
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x410701
push eax
call fcn.0043834c
add esp, 4
test edi, edi
je 0x410726
push edi
jmp 0x41071e
test edi, edi
je 0x410715
push edi
call fcn.0043834c
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x410726
push eax
call fcn.0043834c
add esp, 4
push ebp
call dword [0x4a95ec]
mov dword [esp + 0x54], 0xffffffff
jmp 0x410791
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41074c
push eax
call fcn.0043834c
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41075d
push eax
call fcn.0043834c
add esp, 4
test edi, edi
je 0x41076a
push edi
call fcn.0043834c
add esp, 4
push ebp
call dword [0x4a95ec]
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 0xffffffff
call fcn.00401ae6
mov al, 1
jmp 0x41079c
push ebp
call dword [0x4a95ec]
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x20]
call fcn.00401ae6
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