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

Disassembly:
push 0xffffffffffffffff
push 0x5e7c3a
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x638190]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x638190]
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.004fb670
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 0x52df18
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 0x52e1c0
lea ecx, [esp + 0x48]
call fcn.0051a7e0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 1
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
call fcn.004e79a0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x80], 2
call fcn.004e79a0
movsx eax, word [edi + 2]
mov byte [esp + 0x80], 3
test al, 2
je 0x52dfa7
lea ecx, [esp + 0x48]
push ecx
lea ecx, [edi - 0x10]
call fcn.0056fca0
dec dword [esi + 4]
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x20]
mov ebp, 2
call fcn.0056fa20
test dword [esp + 0x1c], 0x80000
mov eax, dword [edi + 0x1c]
je 0x52df99
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 1
jmp 0x52dfe6
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 1
jmp 0x52dfe6
test al, 4
je 0x52dfe6
lea eax, [esp + 0x48]
push eax
lea ecx, [edi - 0x20]
call fcn.0056fca0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [esp + 0x20]
mov ebp, 1
call fcn.0056fa20
test dword [esp + 0x1c], 0x80000
mov eax, dword [edi + 0xc]
je 0x52dfde
mov dword [esp + 0x20], eax
jmp 0x52dfe2
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 0x52e085
test al, 4
jne 0x52e085
test al, 2
je 0x52e049
lea ecx, [ebx - 2]
lea eax, [esp + 0x48]
shl ecx, 4
push eax
add ecx, edi
call fcn.0056fca0
dec dword [esi + 4]
lea ecx, [esp + 0x4c]
push ecx
lea ecx, [esp + 0x30]
call fcn.0056fa20
test dword [esp + 0x2c], 0x80000
je 0x52e03f
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x30], edx
jmp 0x52e07d
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x38], eax
jmp 0x52e07d
lea edx, [esp + 0x48]
push edx
call fcn.0056fca0
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x30]
call fcn.0056fa20
test dword [esp + 0x2c], 0x80000
je 0x52e075
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x30], ecx
jmp 0x52e07d
mov edx, dword [esp + 0x6c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x14], 1
mov eax, dword [esi + 4]
test eax, eax
jle 0x52e099
shl eax, 4
push eax
mov ecx, esi
call fcn.004fbee0
jmp 0x52e09b
xor eax, eax
xor ebx, ebx
cmp dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esp + 0x3c], ebx
jle 0x52e0dd
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 0x52e0cb
call fcn.004e79a0
inc ebx
cmp ebx, dword [esi + 4]
mov byte [esp + 0x80], 3
mov dword [esp + 0x3c], ebx
jl 0x52e0b0
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x52e0f6
push 0x304
call fcn.005c2bc0
add esp, 4
jmp 0x52e18d
cmp dword [esp + 0x18], 0
jne 0x52e123
cmp dword [esp + 0x14], 0
jne 0x52e117
mov eax, dword [esi + 4]
shl eax, 4
push eax
push edi
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x52e17e
mov edx, dword [esi + 4]
dec edx
shl edx, 4
push edx
push edi
push ecx
jmp 0x52e15f
lea eax, [esp + 0x1c]
push eax
call fcn.004f7030
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
shl ebp, 4
add ebp, edi
cmp dword [esp + 0x14], 0
jne 0x52e153
dec ecx
shl ecx, 4
push ecx
add edx, 0x10
push ebp
push edx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
jmp 0x52e17e
sub ecx, 2
shl ecx, 4
push ecx
push ebp
add edx, 0x10
push edx
call sub.MSVCR90.dll_memcpy
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.004f7030
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.00440ab0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x80], 1
call fcn.00440ab0
lea ecx, [esp + 0x48]
mov byte [esp + 0x80], 0
call fcn.0051a830
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.005c3bb6
add esp, 0x70
ret 8