Function at 0x4fb6b0
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 0x4fb865
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x290]
mov eax, dword [ebx + 0x10]
call fcn.0041eff8
cmp byte [ebp + 8], 0
je 0x4fb709
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.0041eecc
jmp 0x4fb717
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.0041eecc
mov eax, dword [ebx + 0x10]
call fcn.0041eff0
dec eax
jle 0x4fb75d
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x10]
call fcn.0041eec4
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.0041eff0
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, esi
call fcn.0041ef8c
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.00403760
test al, al
je 0x4fb7a9
test edi, edi
jne 0x4fb7a9
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 0x4fb7df
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.0041fa10
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4