Function at 0x401d48
Capabilities:
Encode data using xor

Disassembly:
jmp 0x40ff50
push 0xffffffffffffffff
push 0x482838
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.004018e8
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 0x40ffd5
mov ecx, dword [str.DEFAULTVERSION]
mov edx, dword [0x49205c]
mov eax, dword [0x492060]
mov dword [esp + 0x30], ecx
mov cx, word [0x492064]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
mov word [esp + 0x3c], cx
jmp 0x410019
mov ecx, dword [edx + 4]
mov edx, dword [edx]
cmp ecx, 0x10
jge 0x40fff5
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 0x410019
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 + 0x44a4]
cmp eax, ebp
jle 0x4100a1
shl eax, 2
push eax
call fcn.0043a952
mov ecx, dword [ebx + 0x44a4]
add esp, 4
xor esi, esi
cmp ecx, ebp
mov dword [esp + 0x18], eax
jle 0x410056
mov edi, eax
call fcn.0043ac87
mov dword [edi], eax
mov eax, dword [ebx + 0x44a4]
inc esi
add edi, 4
cmp esi, eax
jl 0x410041
mov ecx, dword [ebx + 0x44a4]
shl ecx, 2
push ecx
call fcn.0043a952
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x44a4]
add esp, 4
xor ecx, ecx
cmp eax, ebp
jle 0x4100a1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
sub edx, eax
mov esi, dword [ebx + 0x44c4]
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 + 0x44a4]
cmp ecx, esi
jl 0x410082
mov eax, dword [ebx + 0x44a8]
cmp eax, ebp
jle 0x41013d
push eax
call fcn.0043a952
mov edi, eax
mov eax, dword [ebx + 0x44a8]
add esp, 4
xor esi, esi
cmp eax, ebp
mov dword [esp + 0x20], edi
jle 0x4100eb
call fcn.0043ac87
and eax, 0x800000ff
jns 0x4100dd
dec eax
or eax, 0xffffff00
inc eax
mov byte [edi + esi], al
mov eax, dword [ebx + 0x44a8]
inc esi
cmp esi, eax
jl 0x4100ca
mov edx, dword [ebx + 0x44a8]
push edx
call fcn.0043a952
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x44a8]
add esp, 4
xor esi, esi
cmp eax, ebp
jle 0x41013d
mov ebp, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub ebp, eax
mov eax, dword [ebx + 0x44c8]
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 + 0x44a8]
cmp esi, eax
jl 0x410114
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.0040161d
lea ecx, [esp + 0x30]
call fcn.004015f5
mov ecx, dword [esp + 0x24]
push ebp
push 0x80
push 2
push ebp
push ebp
mov ebp, dword [0x4b05f8]
push 0x40000000
push ecx
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x4101b9
mov edi, dword [edi]
push 0
push edi
call dword [0x4b05e8]
test eax, eax
je 0x4102da
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 0x4102da
mov edi, dword [0x4b068c]
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x38]
push 0x10
push ecx
push esi
call edi
test eax, eax
je 0x4102da
cmp dword [esp + 0x10], 0x10
jne 0x4102da
mov eax, dword [ebx + 0x44a4]
test eax, eax
jle 0x410238
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 0x4102da
cmp ebp, dword [esp + 0x10]
jne 0x4102da
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 0x4102da
cmp ebp, dword [esp + 0x10]
jne 0x4102da
mov ebx, dword [ebx + 0x44a8]
test ebx, ebx
jle 0x41027a
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 0x4102da
cmp ebx, dword [esp + 0x10]
jne 0x4102da
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 0x4102da
cmp ebx, dword [esp + 0x10]
jne 0x4102da
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41028b
push eax
call fcn.0043a3dc
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41029c
push eax
call fcn.0043a3dc
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4102ad
push eax
call fcn.0043a3dc
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4102be
push eax
call fcn.0043a3dc
add esp, 4
push esi
call dword [0x4b0694]
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401b0e
mov al, 1
jmp 0x410338
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4102eb
push eax
call fcn.0043a3dc
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4102fc
push eax
call fcn.0043a3dc
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41030d
push eax
call fcn.0043a3dc
add esp, 4
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41031e
push eax
call fcn.0043a3dc
add esp, 4
push esi
call dword [0x4b0694]
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401b0e
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