Function at 0x52a614
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 0x52a7c9
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.00426c94
cmp byte [ebp + 8], 0
je 0x52a66d
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x10]
call fcn.00426b68
jmp 0x52a67b
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x10]
call fcn.00426b68
mov eax, dword [ebx + 0x10]
call fcn.00426c8c
dec eax
jle 0x52a6c1
xor eax, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x10]
call fcn.00426b60
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.00426c8c
push eax
push 0x12200
call sub.gdi32.dll_ExtCreatePen
mov edx, eax
mov eax, esi
call fcn.00426c28
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.0040355c
test al, al
je 0x52a70d
test edi, edi
jne 0x52a70d
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 0x52a743
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.004276ac
push eax
call sub.gdi32.dll_PolyPolyline
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4