Function at 0x5281f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5e01ea
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x62fda0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x62fda0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, dword [esp + 0x88]
mov esi, ecx
mov dword [esp + 0x40], esi
call fcn.004f74b0
mov ebx, dword [esp + 0x8c]
xor ebp, ebp
mov dword [esp + 0x80], ebp
mov dword [esi], vtable.ZpatPolyline.0
mov dword [esi + 4], ebx
cmp ebx, ebp
jne 0x528268
xor eax, eax
mov word [esi + 8], ax
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], ebp
jmp 0x528510
lea ecx, [esp + 0x48]
call fcn.00514e60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call fcn.00568b40
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 2
call fcn.00568b40
movsx eax, word [edi + 2]
mov byte [esp + 0x80], 3
test al, 2
je 0x5282f7
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edi - 0x10]
call fcn.00568e10
dec dword [esi + 4]
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
mov ebp, 2
call fcn.00568b90
test dword [esp + 0x1c], 0x80000
mov eax, dword [edi + 0x1c]
je 0x5282e9
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 1
jmp 0x528336
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 1
jmp 0x528336
test al, 4
je 0x528336
lea eax, [esp + 0x48]
push eax
lea ecx, [edi - 0x20]
call fcn.00568e10
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
mov ebp, 1
call fcn.00568b90
test dword [esp + 0x1c], 0x80000
mov eax, dword [edi + 0xc]
je 0x52832e
mov dword [esp + 0x20], eax
jmp 0x528332
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ebp
mov edx, ebx
shl edx, 4
movsx eax, word [edx + edi - 0xe]
lea ecx, [edx + edi - 0x10]
test al, 1
je 0x5283d5
test al, 4
jne 0x5283d5
test al, 2
je 0x528399
lea ecx, [ebx - 2]
lea eax, [esp + 0x48]
shl ecx, 4
push eax
add ecx, edi
call fcn.00568e10
dec dword [esi + 4]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x30]
call fcn.00568b90
test dword [esp + 0x2c], 0x80000
je 0x52838f
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x30], edx
jmp 0x5283cd
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
jmp 0x5283cd
lea edx, [esp + 0x48]
push edx
call fcn.00568e10
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x30]
call fcn.00568b90
test dword [esp + 0x2c], 0x80000
je 0x5283c5
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
jmp 0x5283cd
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], 1
mov eax, dword [esi + 4]
test eax, eax
jle 0x5283e9
shl eax, 4
push eax
mov ecx, esi
call fcn.004f7d30
jmp 0x5283eb
xor eax, eax
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esp + 0x3c], ebx
jle 0x52842d
lea esp, [esp]
mov ecx, ebx
shl ecx, 4
add ecx, dword [esi + 0xc]
mov dword [esp + 0x44], ecx
mov byte [esp + 0x80], 4
je 0x52841b
call fcn.00568b40
inc ebx
cmp ebx, dword [esi + 4]
mov byte [esp + 0x80], 3
mov dword [esp + 0x3c], ebx
jl 0x528400
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x528446
push 0x304
call fcn.004fb6d0
add esp, 4
jmp 0x5284dd
cmp dword [esp + 0x18], 0
jne 0x528473
cmp dword [esp + 0x14], 0
jne 0x528467
mov eax, dword [esi + 4]
shl eax, 4
push eax
push edi
push ecx
call fcn.005bd898
add esp, 0xc
jmp 0x5284ce
mov edx, dword [esi + 4]
dec edx
shl edx, 4
push edx
push edi
push ecx
jmp 0x5284af
lea eax, [esp + 0x1c]
push eax
call fcn.004f45a0
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
shl ebp, 4
add ebp, edi
cmp dword [esp + 0x14], 0
jne 0x5284a3
dec ecx
shl ecx, 4
push ecx
add edx, 0x10
push ebp
push edx
call fcn.005bd898
add esp, 0xc
jmp 0x5284ce
sub ecx, 2
shl ecx, 4
push ecx
push ebp
add edx, 0x10
push edx
call fcn.005bd898
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
add esp, 0xc
lea eax, [esp + 0x2c]
shl ecx, 4
push eax
lea ecx, [ecx + edx - 0x10]
call fcn.004f45a0
xor eax, eax
mov word [esi + 8], ax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 2
call fcn.0045c490
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 1
call fcn.0045c490
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 0
call fcn.00514eb0
mov eax, esi
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.005bd2c6
add esp, 0x70
ret 8