Function at 0x4063e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
push esi
xor ebx, ebx
mov dword [esp + 0x10], 0x4efd00
push edi
xor edi, edi
mov dword [esp + 0xc], ebx
xorps xmm0, xmm0
mov dword [esp + 0x10], edi
movlpd qword [esp + 0x48], xmm0
mov esi, 0x5d1200
nop
push 1
push 0x4f0308
lea eax, [esp + 0x50]
mov edx, edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00406250
mov ecx, dword [esp + 0x24]
lea eax, [ebx*8 + 0x4f6800]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [edi*4 + 0x4b0580]
mov dword [esi + 0x14], eax
mov eax, dword [ebx]
push ecx
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
push edx
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
call fcn.00406190
xor ebx, ebx
xor ecx, ecx
bts ebx, eax
xorps xmm0, xmm0
cmp eax, 0x20
movlpd qword [esp + 0x30], xmm0
cmovae ecx, ebx
xor ebx, ecx
cmp eax, 0x40
cmovae ecx, ebx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jb 0x40652b
ja 0x406492
test ebx, ebx
je 0x40652b
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov dword [esp + 0x18], eax
nop
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x20]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edi
push eax
lea ecx, [esp + 0x2c]
call fcn.00406350
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x28]
push 0
push 0x4f0308
push eax
lea ecx, [esp + 0x4c]
call fcn.00406250
mov eax, dword [esp + 0x28]
and eax, dword [esi]
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x2c]
and ecx, dword [esi + 4]
inc dword [esp + 0xc]
imul edx, eax
mov eax, dword [esi + 0xc]
imul eax, ecx
mov ecx, dword [esi + 0x14]
xor edx, eax
mov eax, dword [esp + 0x40]
shr edx, cl
add edi, 1
mov ecx, dword [esi + 0x10]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [esp + 0x18]
adc eax, 0
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x4064a0
ja 0x406527
cmp edi, ebx
jb 0x4064a0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0xc]
cmp ebx, 0x1480
jle 0x40654f
mov edx, str.error
mov ecx, 0x4f4ee0
call fcn.00405660
push eax
call fcn.00405bb0
add esp, 4
add dword [esp + 0x14], 8
inc edi
add esi, 0x18
mov dword [esp + 0x10], edi
cmp edi, 0x40
jl 0x406410
xor ebx, ebx
mov dword [esp + 0xc], 0x4f1680
xor edi, edi
mov dword [esp + 0x14], ebx
xorps xmm0, xmm0
mov dword [esp + 0x10], edi
movlpd qword [esp + 0x48], xmm0
mov esi, 0x500c00
nop word [eax + eax]
push 1
push 0x4f0b80
lea eax, [esp + 0x50]
mov edx, edi
push eax
lea ecx, [esp + 0x34]
call fcn.00406250
mov ecx, dword [esp + 0x2c]
lea eax, [ebx*8 + 0x501200]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x10], eax
mov eax, dword [edi*4 + 0x4b0680]
mov dword [esi + 0x14], eax
mov eax, dword [ebx]
push ecx
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
push edx
mov dword [esi], edx
mov dword [esi + 4], ecx
mov dword [esi + 0xc], eax
call fcn.00406190
xor ebx, ebx
xor ecx, ecx
bts ebx, eax
xorps xmm0, xmm0
cmp eax, 0x20
movlpd qword [esp + 0x40], xmm0
cmovae ecx, ebx
xor ebx, ecx
cmp eax, 0x40
cmovae ecx, ebx
mov dword [esp + 0x1c], ecx
test ecx, ecx
jb 0x4066ab
ja 0x406612
test ebx, ebx
je 0x4066ab
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [esp + 0x18], eax
nop
mov dword [esp + 0x3c], eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x38]
mov dword [esp + 0x38], edi
push eax
lea ecx, [esp + 0x24]
call fcn.00406350
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push 0
push 0x4f0b80
push eax
lea ecx, [esp + 0x3c]
call fcn.00406250
mov eax, dword [esi]
and eax, dword [esp + 0x20]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 4]
and ecx, dword [esp + 0x24]
inc dword [esp + 0x14]
imul edx, eax
mov eax, dword [esi + 0xc]
imul eax, ecx
mov ecx, dword [esi + 0x14]
xor edx, eax
mov eax, dword [esp + 0x30]
shr edx, cl
add edi, 1
mov ecx, dword [esi + 0x10]
mov dword [ecx + edx*8], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + edx*8 + 4], eax
mov eax, dword [esp + 0x18]
adc eax, 0
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x1c]
jb 0x406620
ja 0x4066a7
cmp edi, ebx
jb 0x406620
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp ebx, 0x19000
jle 0x4066cf
mov edx, str.error
mov ecx, 0x4f4ee0
call fcn.00405660
push eax
call fcn.00405bb0
add esp, 4
add dword [esp + 0xc], 8
inc edi
add esi, 0x18
mov dword [esp + 0x10], edi
cmp edi, 0x40
jl 0x406590
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret