Function at 0x464e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb748
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4ea160]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x34], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x30], eax
mov eax, dword [edi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov eax, ecx
neg eax
mov dword [ebp - 0x24], vtable.FCRect.0
test ecx, ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmovs ecx, eax
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x24]
call fcn.00457a10
mov dword [ebp - 4], 0
test ebx, ebx
jne 0x464ed8
mov eax, dword [edi + 8]
mov ebx, dword [eax + 4]
test esi, esi
jne 0x464ee8
mov eax, dword [edi + 8]
mov esi, dword [eax + 8]
test esi, esi
jns 0x464ee8
neg esi
push esi
push ebx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x24]
push dword [ebp - 0x2c]
call fcn.00457c70
test eax, eax
je 0x465075
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub eax, ecx
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], ecx
sub ebx, edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], ebx
test cl, 1
je 0x464fd7
push 0
push eax
call fcn.004898f0
mov ecx, eax
add esp, 8
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x464fd1
mov eax, ebx
mov dword [ebp - 0x30], 0
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
test eax, eax
jle 0x464fd1
nop dword [eax]
mov ecx, dword [edi + 8]
push dword [ebp - 0x28]
mov eax, dword [ecx + 8]
cdq
mov edi, eax
xor edi, edx
sub edi, edx
mov edx, dword [ecx + 4]
mov ecx, dword [ebp - 0x34]
mov esi, edi
sub esi, dword [ebp - 0x40]
add edx, 3
sub esi, dword [ebp - 0x30]
and edx, 0xfffffffc
dec esi
sub edi, ebx
sub edi, dword [ebp - 0x40]
add edi, dword [ebp - 0x30]
mov ecx, dword [ecx + 0xc]
imul esi, edx
imul edi, edx
add esi, ecx
add esi, dword [ebp - 0x2c]
add edi, ecx
add edi, dword [ebp - 0x2c]
push esi
push dword [ebp - 0x3c]
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x28]
push edi
push esi
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x28]
push dword [ebp - 0x3c]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x30]
add esp, 0x24
mov edi, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x44]
jl 0x464f60
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
test cl, 2
je 0x465044
cdq
xor ebx, ebx
sub eax, edx
sar eax, 1
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x38], ebx
jle 0x465041
nop dword [eax + eax]
mov ecx, dword [edi + 8]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 4]
cdq
xor eax, edx
sub eax, edx
sub eax, dword [ebp - 0x40]
lea ecx, [esi + 3]
mov esi, dword [ebp - 0x28]
sub eax, ebx
dec eax
and ecx, 0xfffffffc
imul eax, ecx
dec esi
mov ecx, dword [ebp - 0x44]
add eax, dword [edi + 0xc]
add eax, dword [ebp - 0x2c]
add esi, eax
test ecx, ecx
jle 0x46503b
mov edi, ecx
mov cl, byte [esi]
lea eax, [eax + 1]
mov dl, byte [eax - 1]
lea esi, [esi - 1]
mov byte [eax - 1], cl
mov byte [esi + 1], dl
sub edi, 1
jne 0x465022
mov edi, dword [ebp - 0x34]
inc ebx
cmp ebx, dword [ebp - 0x38]
jl 0x464ff0
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x465056
push 0
push eax
call fcn.00489940
add esp, 8
mov ecx, dword [edi + 0x68]
test ecx, ecx
je 0x465075
test byte [edi + 0x5c], 4
jne 0x465075
push ebx
push dword [ebp - 0x28]
push dword [ebp - 0x40]
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00464e50
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x24], vtable.FCRect.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044f18f
mov esp, ebp
pop ebp
ret 0x14