Function at 0x401cf3
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40fef0
push 0xffffffffffffffff
push 0x47ff88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
mov ebx, ecx
push esi
xor ebp, ebp
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
call fcn.004018c0
mov edx, dword [esp + 0x50]
xor eax, eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov al, byte [edx + 8]
test al, al
je 0x40ff75
mov ecx, dword [str.DEFAULTVERSION]
mov edx, dword [0x48f00c]
mov eax, dword [0x48f010]
mov dword [esp + 0x30], ecx
mov cx, word [0x48f014]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], cx
jmp 0x40ffb9
mov ecx, dword [edx + 4]
mov edx, dword [edx]
cmp ecx, 0x10
jge 0x40ff95
mov esi, edx
mov edx, ecx
lea edi, [esp + 0x30]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x40ffb9
mov eax, dword [edx]
mov dword [esp + 0x30], eax
mov ecx, dword [edx + 4]
mov dword [esp + 0x34], ecx
mov eax, dword [edx + 8]
mov dword [esp + 0x38], eax
mov cx, word [edx + 0xc]
mov word [esp + 0x3c], cx
mov dl, byte [edx + 0xe]
mov byte [esp + 0x3e], dl
mov eax, dword [ebx + 0x2964]
cmp eax, ebp
jle 0x410041
shl eax, 2
push eax
call fcn.00438072
mov ecx, dword [ebx + 0x2964]
add esp, 4
xor esi, esi
cmp ecx, ebp
mov dword [esp + 0x18], eax
jle 0x40fff6
mov edi, eax
call fcn.004383a7
mov dword [edi], eax
mov eax, dword [ebx + 0x2964]
inc esi
add edi, 4
cmp esi, eax
jl 0x40ffe1
mov ecx, dword [ebx + 0x2964]
shl ecx, 2
push ecx
call fcn.00438072
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x2964]
add esp, 4
xor ecx, ecx
cmp eax, ebp
jle 0x410041
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub edx, eax
mov esi, dword [ebx + 0x2984]
mov edi, dword [edx + eax]
add eax, 4
mov esi, dword [esi + ecx*4]
xor esi, edi
inc ecx
mov dword [eax - 4], esi
mov esi, dword [ebx + 0x2964]
cmp ecx, esi
jl 0x410022
mov eax, dword [ebx + 0x2968]
cmp eax, ebp
jle 0x4100dd
push eax
call fcn.00438072
mov edi, eax
mov eax, dword [ebx + 0x2968]
add esp, 4
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x20], edi
jle 0x41008b
call fcn.004383a7
and eax, 0x800000ff
jns 0x41007d
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + esi], al
mov eax, dword [ebx + 0x2968]
inc esi
cmp esi, eax
jl 0x41006a
mov edx, dword [ebx + 0x2968]
push edx
call fcn.00438072
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x2968]
add esp, 4
xor esi, esi
cmp eax, ebp
jle 0x4100dd
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub ebp, eax
mov eax, dword [ebx + 0x2988]
mov ecx, dword [esp + 0x14]
mov dl, byte [eax + esi]
lea edi, [ecx + esi]
test dl, dl
mov dl, byte [edi + ebp]
setne al
xor dl, al
inc esi
mov byte [edi], dl
mov eax, dword [ebx + 0x2968]
cmp esi, eax
jl 0x4100b4
xor ebp, ebp
sub esp, 0xc
lea edi, [ebx + 0x18]
mov eax, esp
mov dword [esp + 0x5c], esp
push str.SAVE__.LCS
push eax
mov ecx, edi
call fcn.00401604
lea ecx, [esp + 0x30]
call fcn.004015dc
mov ecx, dword [esp + 0x24]
push ebp
push 0x80
push 2
push ebp
push ebp
mov ebp, dword [0x4a85f4]
push 0x40000000
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x410159
mov edi, dword [edi]
push 0
push edi
call dword [0x4a85e8]
test eax, eax
je 0x41027a
mov edx, dword [esp + 0x24]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edx
call ebp
mov esi, eax
cmp esi, 0xffffffff
je 0x41027a
mov edi, dword [0x4a8688]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x38]
push 0x10
push ecx
push esi
call edi
test eax, eax
je 0x41027a
cmp dword [esp + 0x10], 0x10
jne 0x41027a
mov eax, dword [ebx + 0x2964]
test eax, eax
jle 0x4101d8
lea edx, [esp + 0x10]
lea ebp, [eax*4]
mov eax, dword [esp + 0x18]
push 0
push edx
push ebp
push eax
push esi
call edi
test eax, eax
je 0x41027a
cmp ebp, dword [esp + 0x10]
jne 0x41027a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push edx
push esi
call edi
test eax, eax
je 0x41027a
cmp ebp, dword [esp + 0x10]
jne 0x41027a
mov ebx, dword [ebx + 0x2968]
test ebx, ebx
jle 0x41021a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push ecx
push esi
call edi
test eax, eax
je 0x41027a
cmp ebx, dword [esp + 0x10]
jne 0x41027a
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push eax
push esi
call edi
test eax, eax
je 0x41027a
cmp ebx, dword [esp + 0x10]
jne 0x41027a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41022b
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41023c
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41024d
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41025e
push eax
call fcn.00437afc
add esp, 4
push esi
call dword [0x4a868c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401ad7
mov al, 1
jmp 0x4102d8
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41028b
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41029c
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4102ad
push eax
call fcn.00437afc
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4102be
push eax
call fcn.00437afc
add esp, 4
push esi
call dword [0x4a868c]
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401ad7
xor al, al
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x3c
ret 4