Function at 0x460aeabe
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x460ec018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea edx, [ebp - 0x38]
push edx
mov dword [ebp - 0x3c], edi
mov eax, dword [edi + 0x10]
add eax, 8
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x48]
mov ecx, esi
call dword [0x460ed508]
call esi
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0xc]
mov ecx, edi
push ebx
call fcn.460af062
test eax, eax
jne 0x460aeb16
mov ecx, edi
call fcn.460aee10
xor eax, eax
jmp 0x460aedfd
test ebx, ebx
je 0x460aeb56
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
push 0xffffffffffffffff
push 1
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x90]
mov ecx, esi
call dword [0x460ed508]
call esi
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
push 0xffffffffffffffff
push 1
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0x94]
mov ecx, esi
call dword [0x460ed508]
call esi
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x34]
push ecx
push 0
push 1
mov esi, dword [eax]
push eax
mov esi, dword [esi + 0xbc]
mov ecx, esi
call dword [0x460ed508]
call esi
test eax, eax
je 0x460aeba0
cmp dword [edi + 0x9c], 1
jle 0x460aeba0
mov ecx, edi
call fcn.460aee10
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x460ed508]
call esi
jmp 0x460aeb0f
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x460ed508]
call esi
mov eax, dword [edi + 0x9c]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
sub eax, esi
dec eax
add eax, ebx
dec ebx
mov dword [edi + 0x9c], eax
test ebx, ebx
jg 0x460aebd1
xor ebx, ebx
test byte [edi + 0x5c], 1
jne 0x460aec2a
push ebx
mov ecx, edi
call fcn.460a750a
push dword [ebp + 0xc]
mov ecx, edi
mov esi, eax
call fcn.460a750a
cmp eax, esi
jne 0x460aebf8
cmp dword [edi + 0x9c], 0
jne 0x460aec27
push ebx
mov ecx, edi
mov esi, 0xff676983
call fcn.460a750a
test eax, eax
je 0x460aec1a
cmp dword [edi + 0x9c], 0
je 0x460aec1a
mov esi, dword [edi + 0x70]
mov eax, dword [edi + 0x74]
jmp 0x460aec1c
mov eax, esi
push ebx
push ebx
push eax
push esi
mov ecx, edi
call fcn.460af13c
mov esi, dword [ebp + 0xc]
lea ebx, [esi + 1]
cmp ebx, dword [ebp - 0x30]
jge 0x460aec8a
lea eax, [edi + 0xb8]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
push ebx
mov ecx, edi
call fcn.4608ab71
push dword [ebp - 0x2c]
mov esi, eax
call fcn.460a93e1
mov ecx, eax
mov eax, dword [esi]
push ebx
xor eax, dword [ecx]
and eax, 1
xor dword [ecx], eax
mov ecx, edi
call fcn.4608ab71
push dword [ebp - 0x2c]
lea esi, [eax + 4]
call fcn.460a93e1
inc ebx
inc dword [ebp - 0x2c]
lea ecx, [eax + 4]
mov eax, dword [esi]
mov dword [ecx], eax
cmp ebx, dword [ebp - 0x30]
jl 0x460aec44
mov edi, dword [ebp - 0x3c]
mov esi, dword [ebp + 0xc]
dec ebx
cmp ebx, dword [edi + 0x9c]
jl 0x460aecbc
lea esi, [edi + 0xb8]
push ebx
mov ecx, esi
call fcn.460a93e1
push ebx
mov ecx, esi
and dword [eax], 0xfffffffe
call fcn.460a93e1
and dword [eax + 4], 0
dec ebx
cmp ebx, dword [edi + 0x9c]
jge 0x460aec99
mov esi, dword [ebp + 0xc]
mov ecx, dword [edi + 0x9c]
test ecx, ecx
jle 0x460aed74
mov eax, dword [edi + 0xa4]
mov ebx, dword [ebp + 8]
cmp ebx, eax
jg 0x460aecde
dec eax
mov dword [edi + 0xa4], eax
mov eax, dword [edi + 0xa4]
dec ecx
cmp eax, ecx
jl 0x460aeceb
mov eax, ecx
cmp dword [edi + 0x60], 3
mov dword [edi + 0xa4], eax
jne 0x460aed20
test eax, eax
mov eax, dword [edi + 0xa0]
js 0x460aed0d
test eax, eax
js 0x460aed20
cmp ebx, eax
jg 0x460aed20
cmp eax, esi
jg 0x460aed20
cmp eax, ecx
jl 0x460aed13
mov eax, ecx
or dword [edi + 0xa0], 0xffffffff
mov dword [edi + 0xa8], eax
test byte [edi + 0x5c], 1
je 0x460aed8e
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
push ebx
call fcn.460b04d4
lea eax, [ebp - 0x24]
mov ecx, edi
push eax
push esi
call fcn.460b04d4
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
lea eax, [edi + 0x80]
push eax
lea eax, [ebp - 0x14]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x460aed8e
mov eax, dword [edi + 0x8c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 1
push eax
push dword [edi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x460aed8e
push 0
mov ecx, edi
call fcn.460aef18
or dword [edi + 0xa0], 0xffffffff
or dword [edi + 0xa4], 0xffffffff
mov ebx, dword [ebp + 8]
mov eax, dword [edi + 0x94]
cmp eax, dword [edi + 0x90]
jge 0x460aedca
test byte [edi + 0x5c], 8
je 0x460aedca
mov eax, dword [edi + 0x98]
cmp dword [edi + 0x9c], eax
jg 0x460aedca
cmp dword [ebp - 0x30], eax
jle 0x460aedca
mov eax, dword [edi]
push 3
push 1
mov esi, dword [eax + 0x18]
mov ecx, esi
call dword [0x460ed508]
mov ecx, edi
call esi
push dword [ebp + 0xc]
mov ecx, edi
push ebx
call fcn.460b0337
mov ecx, dword [edi + 0x9c]
test ecx, ecx
je 0x460aedf3
mov eax, dword [edi + 0x58]
dec ecx
cmp eax, ecx
jl 0x460aede9
mov eax, ecx
push 0
push eax
mov ecx, edi
call fcn.460b0a98
mov ecx, edi
call fcn.460aee10
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.460ea320
mov esp, ebp
pop ebp
ret 8