Function at 0x10035220
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, ecx
call fcn.10031f48
mov ebx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.10031f68
test eax, eax
jne 0x1003524f
xor edi, edi
jmp 0x10035554
test ebx, ebx
je 0x1003527b
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0xffffffffffffffff
push 1
push eax
call dword [ecx + 0x90]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0xffffffffffffffff
push 1
push eax
call dword [ecx + 0x94]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
push 0
push 1
push eax
call dword [ecx + 0xbc]
test eax, eax
je 0x100352b3
cmp dword [esi + 0x4b0], 1
jle 0x100352b3
mov ecx, esi
call fcn.1003350d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
jmp 0x1003555d
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0x4b0]
mov dword [ebp - 0xc], eax
sub eax, dword [ebp + 0xc]
lea eax, [eax + ebx - 1]
mov dword [esi + 0x4b0], eax
lea eax, [ebx - 1]
test eax, eax
jle 0x100352de
mov dword [ebp - 8], eax
jmp 0x100352e2
and dword [ebp - 8], 0
test byte [esi + 0x6c], 1
jne 0x10035349
push dword [ebp - 8]
mov ecx, esi
call fcn.1002d466
push dword [ebp + 0xc]
mov ecx, esi
mov edi, eax
call fcn.1002d466
cmp eax, edi
jne 0x1003530b
cmp dword [esi + 0x4b0], 0
jne 0x10035349
push dword [ebp - 8]
mov eax, 0xff676983
mov ecx, esi
mov edi, eax
mov ebx, eax
call fcn.1002d466
test eax, eax
je 0x10035337
cmp dword [esi + 0x4b0], 0
je 0x10035337
mov edi, dword [esi + 0x484]
mov ebx, dword [esi + 0x488]
push dword [ebp - 8]
mov ecx, esi
push dword [ebp - 8]
push ebx
push edi
call fcn.1003207f
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
inc edi
cmp edi, dword [ebp - 0xc]
jge 0x100353cd
mov eax, edi
sub eax, dword [ebp + 0xc]
lea eax, [eax + ebx - 1]
mov dword [ebp - 8], eax
lea ebx, [esi + 0x7c]
push edi
mov ecx, ebx
call fcn.100095c4
push dword [ebp - 8]
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.1002d3c7
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
xor ecx, dword [edx]
push edi
and ecx, 1
xor dword [eax], ecx
mov ecx, ebx
call fcn.100095c4
push dword [ebp - 8]
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.1002d3c7
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 8]
mov dword [eax + 8], ecx
lea ebx, [esi + 0x7c]
push edi
mov ecx, ebx
call fcn.100095c4
push dword [ebp - 8]
mov ecx, ebx
mov dword [ebp - 0x14], eax
call fcn.1002d3c7
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + 4]
inc edi
inc dword [ebp - 8]
cmp edi, dword [ebp - 0xc]
mov dword [eax + 4], ecx
jl 0x1003535e
mov ebx, dword [ebp + 8]
dec edi
cmp edi, dword [esi + 0x4b0]
jl 0x10035408
lea ebx, [esi + 0x7c]
push edi
mov ecx, ebx
call fcn.1002d3c7
and dword [eax], 0xfffffffe
push edi
mov ecx, ebx
call fcn.1002d3c7
and dword [eax + 8], 0
push edi
mov ecx, ebx
call fcn.1002d3c7
and dword [eax + 4], 0
dec edi
cmp edi, dword [esi + 0x4b0]
jge 0x100353d9
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x4b0]
xor edi, edi
cmp eax, edi
jle 0x100354dc
mov ecx, dword [esi + 0x4b8]
cmp ebx, ecx
jg 0x10035429
dec ecx
mov dword [esi + 0x4b8], ecx
lea edx, [eax - 1]
mov eax, dword [esi + 0x4b8]
cmp eax, edx
jl 0x10035438
mov eax, edx
cmp dword [esi + 0x70], 3
mov dword [esi + 0x4b8], eax
jne 0x10035487
cmp eax, edi
jge 0x10035461
lea eax, [esi + 0x4b4]
mov ecx, dword [eax]
cmp ecx, edx
jl 0x10035456
mov ecx, edx
or dword [eax], 0xffffffff
mov dword [esi + 0x4bc], ecx
jmp 0x10035487
mov eax, dword [esi + 0x4b4]
cmp eax, edi
jl 0x10035487
cmp ebx, eax
jg 0x10035487
cmp eax, dword [ebp + 0xc]
jg 0x10035487
cmp eax, edx
jl 0x1003547a
mov eax, edx
or dword [esi + 0x4b4], 0xffffffff
mov dword [esi + 0x4bc], eax
test byte [esi + 0x6c], 1
je 0x100354f2
lea eax, [ebp - 0x24]
push eax
push ebx
mov ecx, esi
call fcn.10032af8
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10032af8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea eax, [esi + 0x494]
push eax
lea eax, [ebp - 0x24]
push eax
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x100354f2
mov eax, dword [esi + 0x4a0]
mov dword [ebp - 0x18], eax
push edi
lea eax, [ebp - 0x24]
push eax
push dword [esi + 8]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x100354f2
push edi
mov ecx, esi
call fcn.100340df
or dword [esi + 0x4b4], 0xffffffff
or dword [esi + 0x4b8], 0xffffffff
mov eax, dword [esi + 0x6c]
test al, 2
jne 0x10035529
mov ecx, dword [esi + 0x4a8]
cmp ecx, dword [esi + 0x4a4]
jge 0x10035529
test al, 0x10
je 0x10035529
mov eax, dword [esi + 0x4ac]
cmp dword [esi + 0x4b0], eax
jg 0x10035529
cmp dword [ebp - 0xc], eax
jle 0x10035529
mov eax, dword [esi]
push 3
push 1
mov ecx, esi
call dword [eax + 0x18]
push dword [ebp + 0xc]
mov ecx, esi
push ebx
call fcn.10032a9e
mov eax, dword [esi + 0x4b0]
cmp eax, edi
je 0x10035551
mov ecx, dword [esi + 0x60]
dec eax
cmp ecx, eax
jge 0x10035548
mov eax, ecx
push edi
push eax
mov ecx, esi
call fcn.1003517e
xor edi, edi
inc edi
mov ecx, esi
call fcn.1003350d
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8