Function at 0x4251a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [edi + 0xcabc]
sub esp, 8
test eax, eax
push ebx
push esi
je 0x4252cd
xor ebx, ebx
test eax, eax
jle 0x4252c1
lea esi, [edi + 0x750]
jmp 0x4251d0
mov eax, dword [esi + 0x6018]
mov ecx, dword [esi]
mov edx, dword [esi + 0x601c]
or eax, 2
xor ecx, eax
and ecx, 0x40c0003c
xor ecx, dword [esi]
mov dword [esi + 0x6018], eax
mov eax, dword [esi + 0x6020]
or ecx, 2
mov dword [esi], ecx
mov ecx, dword [esi + 0x6024]
mov dword [esi + 0xc], ecx
movzx ecx, word [esi + 0x6030]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x602c]
mov dword [esi + 4], edx
mov edx, dword [esi + 0x6028]
mov dword [esi + 0x14], eax
mov ax, word [esi + 0x6034]
mov word [esi + 0x18], cx
movzx ecx, word [esi + 0x6036]
mov dword [esi + 0x10], edx
mov dx, word [esi + 0x6032]
mov word [esi + 0x1c], ax
mov word [esi + 0x1a], dx
mov dl, byte [esi + 0x6038]
lea eax, [esi + 0x6348]
mov word [esi + 0x1e], cx
push eax
lea ecx, [esi + 0x330]
mov byte [esi + 0x20], dl
call fcn.00428690
lea ecx, [esi + 0x6039]
push ecx
lea edx, [esi + 0x21]
push 0x104
push edx
call fcn.004850a3
lea eax, [esi + 0x613d]
push eax
lea ecx, [esi + 0x125]
push 0x104
push ecx
call fcn.004850a3
lea edx, [esi + 0x6241]
push edx
lea eax, [esi + 0x229]
push 0x104
push eax
call fcn.004850a3
add ebx, 1
add esp, 0x24
add esi, 0x334
cmp ebx, dword [edi + 0xcabc]
jl 0x4251d0
mov ecx, dword [edi + 0xcabc]
mov dword [edi + 0xcab4], ecx
mov eax, dword [edi + 0xcab8]
test eax, eax
je 0x4255b5
mov dword [esp + 8], 0
jle 0x4255b5
lea esi, [edi + 0x375c]
push ebp
xor ebp, ebp
cmp dword [edi + 0xcab4], ebp
jle 0x42538f
lea eax, [edi + 0x76a]
mov dx, word [eax - 2]
cmp dx, word [esi + 0x18]
jne 0x42537b
mov cx, word [eax]
cmp cx, word [esi + 0x1a]
jne 0x42537b
mov dx, word [eax + 2]
cmp dx, word [esi + 0x1c]
jne 0x42537b
mov cx, word [eax + 4]
cmp cx, word [esi + 0x1e]
jne 0x42537b
mov ecx, dword [eax - 0x1a]
test cl, 0x30
jne 0x42537b
mov dl, byte [eax + 6]
cmp dl, byte [esi + 0x20]
jne 0x42537b
test cl, 1
jne 0x42537b
or dword [esi], 1
mov ecx, dword [eax - 0x1a]
or ecx, 1
test ecx, 0x40000000
mov dword [eax - 0x1a], ecx
mov edx, dword [esi + 8]
mov dword [eax - 0x12], edx
mov edx, dword [esi + 0xc]
mov dword [eax - 0xe], edx
mov edx, dword [esi + 0x10]
mov dword [eax - 0xa], edx
mov edx, dword [esi + 0x14]
mov dword [eax - 6], edx
jne 0x42537b
mov edx, dword [esi]
xor edx, ecx
and edx, 0x40000000
xor edx, ecx
mov dword [eax - 0x1a], edx
add ebp, 1
add eax, 0x334
cmp ebp, dword [edi + 0xcab4]
jl 0x425304
test byte [esi], 1
jne 0x425597
or dword [esi + 0x300c], 1
mov eax, dword [edi + 0xcab4]
imul eax, eax, 0x334
or dword [eax + edi + 0x750], 1
mov ecx, dword [edi + 0xcab4]
mov edx, dword [esi]
imul ecx, ecx, 0x334
xor edx, dword [ecx + edi + 0x750]
lea eax, [eax + edi + 0x750]
lea eax, [ecx + edi + 0x750]
and edx, 0x40000000
xor dword [eax], edx
mov eax, dword [edi + 0xcab4]
mov ecx, dword [esi + 8]
imul eax, eax, 0x334
mov dword [eax + edi + 0x758], ecx
mov edx, dword [edi + 0xcab4]
mov eax, dword [esi + 0xc]
imul edx, edx, 0x334
mov dword [edx + edi + 0x75c], eax
mov ecx, dword [edi + 0xcab4]
mov edx, dword [esi + 0x10]
imul ecx, ecx, 0x334
mov dword [ecx + edi + 0x760], edx
mov eax, dword [edi + 0xcab4]
mov ecx, dword [esi + 0x14]
imul eax, eax, 0x334
mov dword [eax + edi + 0x764], ecx
mov edx, dword [edi + 0xcab4]
movzx eax, word [esi + 0x18]
imul edx, edx, 0x334
mov word [edx + edi + 0x768], ax
mov ecx, dword [edi + 0xcab4]
mov dx, word [esi + 0x1a]
imul ecx, ecx, 0x334
mov word [ecx + edi + 0x76a], dx
mov eax, dword [edi + 0xcab4]
mov cx, word [esi + 0x1c]
imul eax, eax, 0x334
mov word [eax + edi + 0x76c], cx
mov edx, dword [edi + 0xcab4]
movzx eax, word [esi + 0x1e]
imul edx, edx, 0x334
mov word [edx + edi + 0x76e], ax
mov ecx, dword [edi + 0xcab4]
mov dl, byte [esi + 0x20]
imul ecx, ecx, 0x334
mov byte [ecx + edi + 0x770], dl
mov eax, dword [edi + 0xcab4]
mov ecx, dword [esi + 0x330]
imul eax, eax, 0x334
mov ebp, dword [eax + edi + 0xa80]
lea ebx, [eax + edi + 0xa80]
lea eax, [ecx - 0x10]
sub ebp, 0x10
cmp eax, ebp
je 0x425521
cmp dword [ebp + 0xc], 0
jl 0x425515
mov edx, dword [eax]
cmp edx, dword [ebp]
jne 0x425515
push eax
call fcn.00421610
mov dword [esp + 0x14], eax
add esp, 4
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42550a
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
mov ecx, dword [esp + 0x10]
add ecx, 0x10
mov dword [ebx], ecx
jmp 0x425521
mov edx, dword [ecx - 0xc]
push edx
push ecx
mov ecx, ebx
call fcn.004160a0
mov ecx, dword [edi + 0xcab4]
imul ecx, ecx, 0x334
lea eax, [esi + 0x21]
push eax
lea edx, [ecx + edi + 0x771]
push 0x104
push edx
call fcn.004850a3
mov ecx, dword [edi + 0xcab4]
imul ecx, ecx, 0x334
lea eax, [esi + 0x125]
push eax
lea edx, [ecx + edi + 0x875]
push 0x104
push edx
call fcn.004850a3
mov ecx, dword [edi + 0xcab4]
imul ecx, ecx, 0x334
lea eax, [esi + 0x229]
push eax
lea edx, [ecx + edi + 0x979]
push 0x104
push edx
call fcn.004850a3
add esp, 0x24
add dword [edi + 0xcab4], 1
mov eax, dword [esp + 0xc]
add eax, 1
add esi, 0x334
cmp eax, dword [edi + 0xcab8]
mov dword [esp + 0xc], eax
jl 0x4252f0
pop ebp
pop esi
pop ebx
add esp, 8
ret