Function at 0x4019f1
Capabilities:
Encode data using xor

Disassembly:
jmp 0x4103f0
push 0xffffffffffffffff
push 0x47ffa8
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.004018c0
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 0x410471
mov ecx, dword [str.DEFAULTVERSION]
mov edx, dword [0x48f00c]
mov eax, dword [0x48f010]
mov dword [esp + 0x2c], ecx
mov cx, word [0x48f014]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
mov word [esp + 0x38], cx
jmp 0x4104b5
mov ecx, dword [eax + 4]
mov eax, dword [eax]
cmp ecx, 0x10
jge 0x410491
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 0x4104b5
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.00401604
lea ecx, [esp + 0x2c]
call fcn.004015dc
mov edx, dword [esp + 0x20]
push ebp
push 0x80
push 3
push ebp
push ebp
push 0x80000000
push edx
call dword [0x4a85f4]
mov ebp, eax
or esi, 0xffffffff
cmp ebp, esi
jne 0x41050c
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], esi
call fcn.00401ad7
mov al, 1
jmp 0x41076c
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x44]
push 0x10
push ecx
push ebp
call dword [0x4a85a0]
test eax, eax
je 0x410756
cmp dword [esp + 0x10], 0x10
jne 0x410756
mov ecx, 4
lea edi, [esp + 0x3c]
lea esi, [esp + 0x2c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x41056f
push ebp
call dword [0x4a868c]
push 0
push str.error
push 0x48f01c
push 0
call dword [0x4a882c]
mov dword [esp + 0x54], 0xffffffff
jmp 0x410761
mov eax, dword [ebx + 0x2964]
test eax, eax
jle 0x410609
lea esi, [eax*4]
push esi
call fcn.00438072
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 [0x4a85a0]
test eax, eax
je 0x4106d1
cmp esi, dword [esp + 0x10]
jne 0x4106d1
mov edx, dword [ebx + 0x2984]
lea ecx, [esp + 0x10]
push 0
push ecx
push esi
push edx
push ebp
call dword [0x4a85a0]
test eax, eax
je 0x4106d1
cmp esi, dword [esp + 0x10]
jne 0x4106d1
mov ecx, dword [ebx + 0x2964]
xor eax, eax
test ecx, ecx
jle 0x41060d
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 0x4105e9
jmp 0x41060d
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0x2968]
test esi, esi
jle 0x410707
push esi
call fcn.00438072
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], eax
push 0
push ecx
push esi
push eax
push ebp
call dword [0x4a85a0]
test eax, eax
je 0x4106d8
cmp esi, dword [esp + 0x10]
jne 0x4106d8
mov edx, dword [ebx + 0x2968]
push edx
call fcn.00438072
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
push 0
push eax
push esi
push edi
push ebp
call dword [0x4a85a0]
test eax, eax
je 0x4106af
cmp esi, dword [esp + 0x10]
jne 0x4106af
mov ecx, dword [ebx + 0x2968]
xor eax, eax
test ecx, ecx
jle 0x41070b
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 0x41068b
jmp 0x41070b
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4106c0
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4106d1
push eax
call fcn.00437afc
add esp, 4
test edi, edi
je 0x4106f6
push edi
jmp 0x4106ee
test edi, edi
je 0x4106e5
push edi
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4106f6
push eax
call fcn.00437afc
add esp, 4
push ebp
call dword [0x4a868c]
mov dword [esp + 0x54], 0xffffffff
jmp 0x410761
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41071c
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41072d
push eax
call fcn.00437afc
add esp, 4
test edi, edi
je 0x41073a
push edi
call fcn.00437afc
add esp, 4
push ebp
call dword [0x4a868c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x54], 0xffffffff
call fcn.00401ad7
mov al, 1
jmp 0x41076c
push ebp
call dword [0x4a868c]
mov dword [esp + 0x54], esi
lea ecx, [esp + 0x20]
call fcn.00401ad7
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