Function at 0x77aac8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov ebx, dword [eax + 0x208]
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x77ac7d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x280]
mov eax, dword [ebx + 0x10]
call fcn.0042ddd4
cmp byte [ebp + 8], 0
je 0x77ab21
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0042dca8
jmp 0x77ab2f
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0042dca8
mov eax, dword [ebx + 0x10]
call fcn.0042ddcc
dec eax
jle 0x77ab75
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x10]
call fcn.0042dca0
mov dword [ebp - 0x24], eax
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
push 0
lea eax, [ebp - 0x28]
push eax
mov esi, dword [ebx + 0x10]
mov eax, esi
call fcn.0042ddcc
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, esi
call fcn.0042dd68
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 8]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + edi*4]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
shr ecx, 1
add edx, ecx
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov si, 0xffc8
call fcn.004041a4
test al, al
je 0x77abc1
test edi, edi
jne 0x77abc1
inc dword [ebp - 0xc]
mov eax, edi
xor eax, 1
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov edx, dword [edx + eax*4]
mov dword [ebp - 0x18], edx
add eax, 2
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x1c], eax
lea eax, [edi + 2]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov edx, dword [ebp - 4]
add eax, dword [edx]
mov dword [ebp - 0x14], eax
xor ebx, ebx
lea eax, [edi + ebx]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword [edx + eax*4], ecx
mov eax, edi
xor eax, 1
mov edx, eax
add edx, ebx
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ecx + edx*4], esi
add ebx, 2
lea edx, [edi + ebx]
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
mov dword [ecx + edx*4], esi
add eax, ebx
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [edx + eax*4], ecx
add ebx, 2
inc dword [ebp - 8]
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov eax, dword [esi + 0x2c]
call dword [esi + 0x28]
mov edx, dword [ebp - 4]
add eax, dword [edx]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jle 0x77abf7
shr ebx, 2
push ebx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x208]
call fcn.0042ec60
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4